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: Carroll ISD Parents Pack School Board Meeting Following Administrator's Secretly-Recorded Holocaust Comment

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: Police From All Over Rally To Lift Spirits Of North Texas Child Battling Cancer

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

MORE NEWS: 1-Year-Old Dallas Boy At Center Of Amber Alert Found Safe

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