A federal court has ruled against the Trump administration in a lawsuit over funding for “sanctuary cities.”

U.S. District Judge Richard Jones wrote in a Wednesday judgement that part of President Trump Donald John TrumpBiden says voters should choose who nominates Supreme Court justice Trump, Biden will not shake hands at first debate due to COVID-19 Pelosi: Trump Supreme Court pick 'threatens' Affordable Care Act MORE's executive order to end federal grant funding for sanctuary cities is unconstitutional.

Jones, an appointee of former President George W. Bush, ruled that it “would be unconstitutional” for the administration to withhold funding from the cities of Seattle and Portland, the two plaintiffs named in the lawsuit.

The lawsuit named Attorney General Jeff Sessions Jefferson (Jeff) Beauregard SessionsRoy Moore sues Alabama over COVID-19 restrictions GOP set to release controversial Biden report Trump's policies on refugees are as simple as ABCs MORE and Homeland Security Secretary Kirstjen Nielsen Kirstjen Michele NielsenMore than million in DHS contracts awarded to firm of acting secretary's wife: report DHS IG won't investigate after watchdog said Wolf, Cuccinelli appointments violated law Appeals court sides with Trump over drawdown of immigrant protections MORE as defendants.

ADVERTISEMENT

The ruling follows a U.S. appeals court decision in August that also found Trump's executive order unconstitutional. That decision upheld a lower court ruling in favor of two California counties.

The city of Seattle filed its lawsuit in March 2017 seeking to clarify Trump’s executive order, which was signed just days after his inauguration in early 2017.

The order gave the Justice Department and Department of Homeland Security the power to withhold federal grants to cities that did not comply with federal immigration law.

A number of cities have declared themselves “sanctuaries,” meaning that local authorities do not cooperate with federal immigration enforcement to detain people solely based on their immigration status.

“Seattle will not be bullied by this White House or this administration,” Seattle Mayor Ed Murray (D) said at the time the lawsuit was filed.

The lawsuit was filed days after Sessions vowed that the Justice Department would withhold grants from cities unless they certified that they are not sanctuary cities.