Donald Trump has signed an executive order to stop children being separated from their parents at the southern US border.
Amid mounting pressure from Democrats and Republicans alike – and disapproving public opinion polls – the president put pen to paper on a directive that would keep families together, albeit still kept in cages.
“It’s about keeping families together while ensuring we have a very powerful, very strong border,” said Mr Trump.
“We are keeping families together. This will solve that problem.”
But he and Vice President Mike Pence both stressed that their zero-tolerance policy would remain in place despite the new order, meaning that everyone who crosses the border without papers will still be referred for prosecution.
“If you’re really really pathetically weak, the country is going to be overrun by millions of people,” the president said.
“And if you’re strong then you don’t have any heart. That’s a tough dilemma. Perhaps I’d rather be strong.”
The reason youngsters have been split up from their parents is because it was forbidden to place children in a federal jail.
The offspring of the migrants will now be detained in the same holding cells as their parents, but how long for remains uncertain.
Sky News US correspondent Cordelia Lynch said that an indefinite stay would most likely lead to some fairly quick legal challenges.
When President Obama tried to house children in detention centres during an influx of youngsters in 2014, his policy was deemed illegal by a judge in California.
Mr Trump’s executive order reads: “It is also the policy of this Administration to maintain family unity, including by detaining alien families together where appropriate and consistent with law and available resources.
“The Secretary of Homeland Security (Secretary), shall, to the extent permitted by law and subject to the availability of appropriations, maintain custody of alien families during the pendency of any criminal improper entry or immigration proceedings involving their members.”
It remains to be seen how the 2,300 children already believed to have been separated from their families will be reunited with them, but Alex Azar, the secretary of health and human services, said the agency was committed to doing so.
Those separations were defended by Mr Trump in recent days – as he insisted it was not in his power to prevent them happening.
He had blamed the Democrats for the situation, saying “they won’t give us the votes needed to pass good legislation”.
Ivanka Trump had reportedly advised her father as to the negative image being created by the pictures of the separations, and welcomed the signing of the executive order on Twitter.
She called on congress to “find a lasting solution that is consistent with our shared values”.
Mr Trump’s backtrack came on World Refugee Day, which his predecessor Barack Obama had used to call for an end to the practice of splitting children from their parents.
He wrote on Facebook that it posed serious questions about what kind of country the US considered itself to be.
“To find a way to welcome the refugee and the immigrant – to be big enough and wise enough to uphold our laws and honour our values at the same time – is part of what makes us American,” he said.
His comments were echoed by rights groups, who continued to raise concerns over the president’s immigration policies – which include his infamous border wall – after the executive order was signed.
RAICES – the largest migrants’ legal charity in Texas – said: “This is not a victory. This is indefinite family detention which has already been tried and we already know it is horrible.”
The Texas Civil Rights Project – another Texas immigration charity – said “the zero-tolerance policy is the problem causing the separation” and demanded that it end.
It added: “Jailing parents and children is not a solution – it’s posturing meant to deflect from the real issue.”
And the American Civil Liberties Union said the Trump administration “has made it clear” that it will “keep attacking immigrants” – effectively rejecting the executive order.
“Trump’s alleged solution to this crisis of his own making is months too late,” it said.
“It’s a crisis that should never have happened, and it’s caused irreparable damage to thousands of immigrant families.”