(NewsNation) — The Trump administration will appeal a court ruling that blocked the use of the National Guard in California and found it illegal.

Tuesday's ruling from Judge Charles Breyer found that the deployment of the National Guard and active-duty Marines violated the Posse Comitatus Act, which prohibits the use of the military for domestic law enforcement unless authorized by Congress.

Breyer allowed some troops to remain in the city but put significant restrictions on their activities.

The Trump administration argued the deployment was lawful because the troops were protecting federal activity.

Trump federalized California's National Guard over the objections of local leaders after protests broke out in Los Angeles in response to federal immigration raids.

The court battle is s

See Full Page