OAKLAND, Calif. (AP) – A federal judge has prohibited President Donald Trump from using $2.5 billion in military funding to build high-priority sections of his prized border wall in California, Arizona and New Mexico.

The judge in Oakland ruled Friday in two lawsuits that use of the money is unlawful.

The administration is expected to appeal.

The president declared a national emergency in February so that he could divert military money to building the wall – his signature campaign promise – after a bruising battle with Congress. Pending legal action, construction could have begun as early as Monday.

The judge rejected use of $2.5 billion the Pentagon had earmarked for fighting drugs but the 9th U.S. Circuit Court of Appeal is expected to weigh in on the same issue next week.