The Ninth Circuit handed the Trump administration a legal defeat Wednesday, ruling the Justice Department does not have the authority to withhold federal grant money from sanctuary cities.

A three-judge panel said the fundamental separation of powers enshrined in the U.S. Constitution bars the executive branch from refusing to disburse grants without explicit permission from Congress.

“We conclude that, under the principle of separation of powers and in consideration of the Spending Clause, which vests exclusive power to Congress to impose conditions on federal grants, the executive branch may not refuse to disperse the federal grants in question without congressional authorization,” Chief Circuit Judge Sidney Thomas wrote on behalf of the majority.

But the panel also found U.S. District Judge William Orrick III overstepped his authority by slapping the Justice Department with a nationwide injunction.

The panel’s ruling stems from a lawsuit filed by San Francisco and nearby Santa Clara County, which claimed the policy violated the provisions of the Constitution on separation of powers.

According to the government, Trump’s executive order to cease supplying grants to cities with sanctuary laws applied to a relatively small pot of money that requires compliance with federal immigration laws.

An email to the Department of Justice was not returned as of press time.

More From Missoula Current