The decision makes inconsequential a ruling by Washington DC District Judge Timothy Kelly earlier in the day that declined to block the rule in a different lawsuit brought by immigration advocacy groups, lawyers said.
On Friday, US District Court Judge Haywood Gilliam in Oakland, California said in a pair of court decisions that the Trump administration's proposal to transfer Defense Department funds intended for anti-drug activities was unlawful.
Mexico has sent a delegation of officials to Washington to try to avert U.S. President Donald Trump's threats to impose import tariffs on Mexican goods if the country does not do more to halt the flow of migrants to the United States.
US President Donald Trump has repeatedly vowed to close the US border with Mexico in the past, but this time the United States government may follow through as it struggles to deal with a surge of asylum seekers countries in Central America.
With the 248-181 tally, Trump is now likely to continue scouring federal accounts for money he wants redirected to building a border wall, which he says is needed to curb illegal immigration and drug trafficking.
The Trump administration launched the program in late January in what marks a potentially seismic shift on how the US handles the cases of immigrants seeking asylum and fleeing persecution in their homeland, memos obtained by AP revealed.
More than 76,000 migrants crossed the border without authorization in February, more than double the levels from the same period last year and approaching the largest numbers seen in any February in the last 12 years.