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: Maryland Weather: Tornado Watch In Effect For Parts Of Maryland

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: Will Baltimore Make The List? FIFA Plans To Announce 2026 World Cup Sites On June 16

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

Follow @CBSBaltimore on Twitter and like WJZ-TV | CBS Baltimore on Facebook

MORE NEWS: Near-Record Heat For Preakness Stakes Another Test For Epicenter

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