The U.S. Supreme Court on Friday handed President Donald Trump a victory by letting his administration redirect $2.5 billion in money approved by Congress for the Pentagon to help build his promised wall along the U.S.-Mexico border even though lawmakers refused to provide funding.

The conservative-majority court on a 5-4 vote with the court's liberals in dissent blocked in full a ruling by a federal judge in California barring the Republican president from spending the money on the basis that Congress did not specifically authorize the funds to be spent on the wall project fiercely opposed by Democrats and Mexico's government.

"Wow! Big VICTORY on the Wall. The United States Supreme Court overturns lower court injunction, allows Southern Border Wall to proceed. Big WIN for Border Security and the Rule of Law!" Trump tweeted just minutes after the court acted.