President Donald Trump delayed a nationwide immigration sweep to deport people living in the United States illegally, including families, saying he would give lawmakers two weeks to work out solutions for the southern border.

The move came after House Speaker Nancy Pelosi called Trump on Friday asking him to call off the raids. But three administration officials said scrapping the operation was not just about politics. They said Immigration and Customs Enforcement leaders had expressed serious concerns that officers’ safety would be in jeopardy because too many details about the raids had been made public.