Judge who Trump attacked because of 'Mexican' heritage just rejected a lawsuit seeking to stop his border wall
Prototypes for U.S. President Donald Trump's border wall with Mexico are seen behind the current border fence in this picture taken from the Mexican side of the border in Tijuana, Mexico, January 27, 2018. Picture taken January 27, 2018. REUTERS/Jorge Duenes

A U.S. judge on Tuesday sided with President Donald Trump's administration and rejected an attempt by the state of California and environmental groups to stop the government from building a wall on the U.S. border with Mexico.

The lawsuit filed in a San Diego federal court alleged that Trump's proposed wall violates federal environmental standards, as well as constitutional provisions regarding the separation of powers and states' rights.

The plaintiffs asked U.S. District Judge Gonzalo Curiel to stop the administration from building the wall until it demonstrates compliance with environmental laws.

In a ruling on Tuesday, Curiel said his decision was not based on whether the underlying decisions to construct the wall "are politically wise or prudent."

Rather, Curiel said the Trump administration had not exceeded its legal authority in pursuing the project.

Representatives for California Attorney General Xavier Becerra could not immediately be reached for comment.

Trump accused Curiel of bias during the 2016 presidential campaign based on the Indiana-born judge's Mexican ancestry. At the time, Curiel had been overseeing a separate lawsuit involving Trump University.

(Reporting by Dan Levine; Editing by James Dalgleish)