The White House was caught off-guard by how quickly the measure passed through Congress, having expected it to take longer in the Senate, according to two people with direct knowledge of the matter.