“Why are we having all these people from shithole countries come here?” Trump said, according to these people, referring to African countries and Haiti. He then suggested that the United States should instead bring more people from countries like Norway, whose prime minister he met yesterday.

The comments left lawmakers taken aback, according to people familiar with their reactions. Sens. Lindsey O. Graham (R-S.C.) and Richard J. Durbin (D-Ill.) proposed cutting the visa lottery program by 50 percent and then prioritizing countries already in the system, a White House official said.