The shifts left some senior aides and Republican lawmakers wondering whether the White House had finally come unmoored.