The Republican administration on March 21 terminated a contract with the Acacia Center for Justice, which provides legal services for unaccompanied migrant children under 18 through a network of legal aid groups that subcontract with the center. Eleven subcontractor groups sued, saying that 26,000 children were at risk of losing their attorneys; Acacia is not a plaintiff.

Those groups argued that the government has an obligation under a 2008 anti-trafficking law to provide vulnerable children with legal counsel.

U.S. District Judge Araceli Martínez-Olguín of San Francisco granted a temporary restraining order late Tuesday. She wrote that advocates raised legitimate questions about whether the administration violated the 2008 law, warranting a return to the status quo while the case continues. The order will take effect Wednesday and runs through April 16.