Videos of youngsters in cages and an audiotape of wailing children had sparked anger in the United States from groups ranging from clergy to influential business leaders, as well as condemnation from abroad, including Pope Francis.
Trump, a frequent viewer of cable television newscasts, had recognized the family separation issue was a growing political problem, White House sources said. First lady Melania Trump, in private conversations with the president, urged him to do something, a White House official said.
"The first lady has been making her opinion known to the president for some time now, which was that he needed to do all he could to help families stay together," an official said.
Wednesday's move marked a rare instance since Trump took office in January 2017 in which he has changed course on a controversial policy, rather than digging in.
Trump has made a tough stance on immigration central to his presidency. In recent days, the Republican president had insisted his hands were tied by law on the issue of family separations and had sought to blame Democrats, although it was his administration that implemented the policy of strict adherence to immigration law.
The Republican-controlled U.S. Congress is also considering legislation to address the issue. The House of Representatives planned to vote on Thursday on two bills designed to halt the practice of separating families and to address other immigration issues.
But Republicans said they were uncertain if either measure would have enough support to be approved. Trump told House Republicans on Tuesday night he would support either of the immigration bills under consideration but did not give a preference.
More from HuffPost Canada:
More on HuffPost Canada: