The White House on Tuesday tore into a San Francisco judge's ruling blocking enforcement of President Trump's sanctuary cities order, saying the judge "unilaterally rewrote immigration policy for our Nation."

A judge on Tuesday granted a preliminary injunction to block Trump’s January order to withhold federal funds from cities that refuse to comply with federal authorities in enforcing immigration laws.

"Once again, a single district judge — this time in San Francisco — has ignored Federal immigration law to set a new immigration policy for the entire country. ... San Francisco, and cities like it, are putting the well-being of criminal aliens before the safety of our citizens, and those city officials who authored these policies have the blood of dead Americans on their hands," press secretary Sean Spicer's office said in a statement.

ADVERTISEMENT

The White House called the San Francisco judge's ruling a "gift to the criminal gang and cartel element in our country."

"This case is yet one more example of the egregious overreach by a single, unelected district judge," the statement said.

The White House said it will "pursue all legal remedies" and called it a fight between "sovereignty and open borders."

"We are confident we will ultimately prevail in the Supreme Court, just as we will prevail in our lawful efforts to impose immigration restrictions necessary to keep terrorists out of the United States."

The judge ruled that Trump's order violated the Constitution by attempting to punish local governments by seeking to "deprive local jurisdictions of congressional allocated funds without any notice or opportunity to be heard."