In a broad ruling, the judge determined Trump had not properly called the Guard up in the first place.
Major General Scott Sherman, speaking in an interview with The Associated Press and one other media outlet, said that as of Wednesday, about 500 of the National Guard troops have been trained to accompany agents on immigration operations.
Photos of National Guard soldiers providing security for the agents have already been circulated by immigration officials.
Sherman is the commander of Task Force 51, which is overseeing the National Guard troops and Marines sent to Los Angeles. The ruling does not apply to the Marines.
Typically, the authority to call up the National Guard lies with governors, but there are limited circumstances under which the president can deploy those troops. Trump federalised members of the California National Guard under an authority known as Title 10.
Title 10 allows the president to call the National Guard into federal service under certain limited circumstances, such as when the country “is invaded,” when “there is a rebellion or danger of a rebellion against the authority of the Government,” or when the president is unable “to execute the laws of the United States.”
Breyer said in his ruling that what is happening in Los Angeles does not meet the definition of a rebellion.
“The protests in Los Angeles fall far short of ‘rebellion,’” he wrote.
The lawsuit argued that Title 10 also requires that the president go through governors when issuing orders to the National Guard.
Brett Shumate, an attorney for the federal government, said Trump complied with the statute by informing the general in charge of the troops of his decision and would have the authority to call in the Guard even if he had not.
In a brief filed ahead of the Thursday hearing, the Justice Department said Trump’s orders were not subject to judicial review.
“Courts did not interfere when President Eisenhower deployed the military to protect school desegregation. Courts did not interfere when President Nixon deployed the military to deliver the mail in the midst of a postal strike. And courts should not interfere here either,” the department said.
“Our position is this is not subject to judicial review,” Shumate told the judge.
Breyer, who at one point waved a copy of the (US) Constitution, said he disagreed.
“We’re talking about the president exercising his authority, and the president is of course limited in that authority. That’s the difference between a constitutional government and King George,” he said.
The protests over immigration raids in Los Angeles intensified after Trump called up the Guard and have since spread to other cities, including Boston, Chicago and Seattle.
Federal immigration agents have been arresting people at Home Depot parking lots and other businesses, sparking fear in immigrant communities, after the Trump administration said it wanted to dramatically increase arrests under its immigration crackdown.
Trump has described Los Angeles in dire terms that Bass and Newsom say are nowhere close to the truth.
The Marines have not yet been spotted in Los Angeles, and National Guard troops have had limited engagement with protesters.
Dozens of mayors from across the Los Angeles region banded together Wednesday to demand that the raids stop and troops leave.