The US military has been asked to get ready to house up to 20,000 immigrant children, officials said on Thursday, as President Donald Trump’s efforts to roll back a widely condemned policy of separating children from their parents were beset by confusion.