Judge bars Trump from using $2.5B to build border wall

The U.S.-Mexico border near Nogales, Arizona (Robert Bushell)

A federal judge on Friday prohibited President Donald Trump from tapping $2.5 billion in military funding to build high-priority segments of his prized border wall in California, Arizona and New Mexico.

Judge Haywood S. Gilliam, Jr. in Oakland acted in two lawsuits filed by California and by activists who contended that the money transfer was unlawful and that building the wall would pose environmental threats.

RELATED: 7-year-old boy raises $22,000 for border wall construction, planning lemonade stand for summer

"All President Trump has succeeded in building is a constitutional crisis, threatening immediate harm to our state," said California Attorney General Xavier Becerra, who led a 20-state coalition of attorneys general in one lawsuit.

Speaking Saturday at a press conference marking the end of the Group of 20 summit in Osaka, Japan, Trump called the decision "a disgrace."

"So we're immediately appealing it and we think we'll win the appeal," he went on to say. "There was no reason that that should have happened. And a lot of wall is being built."

The decisions are in line with Gilliam's ruling last month that blocked work from beginning on two of the highest-priority projects - one spanning 46 miles (74 kilometers) in New Mexico and another covering 5 miles (8 kilometers) in Yuma, Arizona.

But the fight is far from over. The U.S. 9th Circuit Court of Appeals is expected to take up the same issue of using military money next week.

At issue is President Donald Trump's February declaration of a national emergency so that he could divert $6.7 billion from military and other sources to begin construction of the wall, which could have begun as early as Monday.

RELATED: Loose change left at airport checkpoints may be used to build wall

Trump declared the emergency after losing a fight with the Democratic-led House that led to a 35-day government shutdown.

The president identified $3.6 billion from military construction funds, $2.5 billion from Defense Department counterdrug activities and $600 million from the Treasury Department's asset forfeiture fund.

The judge Friday didn't rule on funding from the military construction and Treasury budgets.

In the second suit, brought by the American Civil Liberties Union on behalf of Sierra Club and the Southern Border Communities Coalition, the judge determined that the use of the $2.5 billion for two sectors of the wall was unlawful, although he rejected environmental arguments that wall construction would threaten species such as bighorn sheep.

News