A federal judge in California has ruled that the way President Donald Trump deployed deployment of the National Guard to Los Angeles this summer was illegal.
The ruling comes as Trump seeks to use National Guard troops in order to crack down on crime in other US cities and support immigration enforcement.
US District Judge Charles Breyer said Trump violated the Posse Comitatus Act, which limits the power of the federal government to use military force for domestic matters.
White House spokeswoman Anna Kelly said that “a rogue judge is trying to usurp the authority of the Commander-in-Chief to protect American cities from violence and destruction.”
The ruling is on hold 12 September.
The Trump administration will likely appeal the ruling.
“The President is committed to protecting law-abiding citizens, and this will not be the final say on the issue,” Ms Kelly said.
Governor Gavin Newsom said in a statement that “the court sided with democracy and the Constitution.”
Trump deployed National Guard troops to Los Angeles in June in response to protests against immigration raids.
The White House argued it was necessary to quell violence, but California officials argued that their law enforcement could handle the situation without military intervention.
The president has also deployed hundreds of National Guard troops in Washington DC and is weighing dispatching troops to Chicago as soon as this week.
Judge Breyer’s order only applies in California, but could signal legal challenges ahead for Trump’s plans to use the Guard to enforce his policies.
After Trump deployed troops to Los Angeles, Governor Gavin Newsom sued the administration for alleged violations of the Posse Comitatus Act.
The law, first passed in 1878, prohibits using the US military in order to execute domestic laws, or assist with doing so. The law has limited exceptions, such as authorisation by Congress.
Judge Breyer found that the ways the Trump administration used the National Guard in Los Angeles violated these restrictions.
He cited work by soldiers such as “setting up protective perimeters, traffic blockades, crowd control, and the like” as prohibited under the law.
“President Trump’s recent executive orders and public statements regarding the National Guard raise serious concerns as to whether he intends to order troops to violate the Posse Comitatus Act elsewhere in California,” Judge Breyer wrote.
He warned that Trump and Defense Secretary Pete Hegseth ran the risk of “creating a national police force with the President as its chief”.
He blocked the National Guard from executing the following laws including “engaging in arrests, apprehensions, searches, seizures, security patrols, traffic control, crowd control, riot control, evidence collection, interrogation, or acting as informants”.
The White House did not respond to a request for comment, and the Defense and Justice Departments declined to comment.
An additional legal challenge from California sought to wrest back control of California’s National Guard contingent, after Newsom alleged Trump had unlawfully circumvented him to deploy the troops.
Judge Breyer, who also handled that case, ruled in Newsom’s favour, but the Ninth Circuit Court of Appeals ruled in favour of Trump in June.