SAN FRANCISCO (AP) – A federal judge has permanently blocked President Donald Trump’s executive order to cut funding from cities that limit cooperation with U.S. immigration authorities.

U.S. District Court Judge William Orrick issued the ruling on Monday in lawsuits brought by two California counties, San Francisco and Santa Clara. Orrick said Trump cannot set new conditions on spending approved by Congress.

READ MORE: North Texas Highs In 60s On Monday Before Rain/Snow Mix Chances By Midweek

The judge had previously put a temporary hold on the executive order targeting so-called sanctuary cities. The Trump administration has appealed that decision to the 9th U.S. Circuit Court of Appeals.

READ MORE: 330,000+ Pacifiers Sold On Amazon Recalled Due To Choking Hazard

The Trump administration has also moved to withhold one particular law enforcement grant from sanctuary cities, prompting a new round of lawsuits.

MORE NEWS: Luka, Kristaps Lead Dallas Mavericks Past Grizzlies 104-91 At AAC

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)