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, an Obama appointee, 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.

“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.

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.

Judge Gilliam who was nominated and confirmed to the federal bench in 2014 donated thousands of dollars to the Obama re-election campaign, Obama for America and the Obama Victory Fund according to federal election records and was rewarded for his loyalty with a federal judgeship which as yesterday’s action shows, has made him a valuable piece in the Obama stay-behind network that continues the job of radically transforming America years after Dear Leader has left the White House.

This article was edited by TheBL.