The Department of Justice vowed that the U.S. military would "remain in Los Angeles" after a federal judge ruled that President Donald Trump had illegally deployed troops to the city.

In a ruling on Tuesday, U.S. District Judge Charles Breyer said that the administration had "violated the Posse Comitatus Act" by deploying 4,000 National Guard troops and 700 Marines to Los Angeles.

Bill Essayli, Trump's acting U.S. Attorney for the Central District of California, reacted by suggesting that the president would not back down.

"The military will remain in Los Angeles," Essayli wrote on X. "This is a false narrative and a misleading injunction. The military has never engaged in direct law enforcement operations here in LA. They protect our federal employees our properties so our federal agents can safely enforce federal laws in the face of the thugs being unleashed and encouraged by state and local politicians.