White House officials have expressed frustration in internal conversations that they had to scramble to deal with the crisis.