SAN FRANCISCO (AP) — The White House is blasting a federal judge's decision Tuesday blocking President Trump's attempt to withhold funding from "sanctuary cities" that do not cooperate with U.S. immigration officials. But they say they're confident they'll prevail in the Supreme Court.

White House Press Secretary Sean Spicer's office slammed the decision in a statement as an "egregious overreach by a single, unelected district judge."

He is accusing cities such as San Francisco of "putting the well-being of criminal aliens before the safety of our citizens" and says city officials who authored policies protecting people living in the country illegally "have the blood of dead Americans on their hands."

He adds that the ruling is "a gift to the criminal gang and cartel element in our country" and claims it puts "thousands of innocent lives at risk."