On Tuesday, San Francisco and its Silicon Valley neighbor, Santa Clara County, both won preliminary injunctions blocking the Jan. 25 “sanctuary cities” executive order handed down by Donald Trump.

A San Francisco judge barred enforcement of Trump’s executive order withholding funds from so-called sanctuary cities that fail to comply with federal immigration demands by shielding undocumented immigrants. Trump had declared that sanctuary jurisdictions cause “immeasurable harm to the American people and to the very fabric of our republic.”

The city and county argued the president’s order violated the Constitution and threatened to deprive them of funding for local programs. With this new judgment, the federal government may ask the U.S. Court of Appeals in San Francisco to overturn the original ruling.

Forcing sanctuary cities to cooperate with deporting undocumented immigrants was a key component of the president’s campaign vow to rid the U.S. of “bad hombres” entering from Mexico. Tuesday’s ruling may cause further frustration for the beleagured administration.

However, according to Bloomberg Politics, the win bolsters California’s aspirations to lead the so-called resistance against the Trump administration’s agenda and could reinforce similar policies in some of the nation’s largest cities, including New York, Los Angeles and Chicago.

California’s state Senate recently passed the California Values Act, a measure that would give the entire state sanctuary status by prohibiting its agencies from sharing certain information with U.S. counterparts or detaining individuals on orders from Washington.