The Trump administration is moving to end a long-standing federal court agreement that limits how long immigrant children can be kept in detention, a decision that will almost certainly lead to a new court fight over the government's ability to hold migrant families until their cases are decided.