This was a surprising ruling.

A federal judge dealt the Trump administration a major legal setback Tuesday by issuing a nationwide order blocking one of its immigration enforcement policies. The ruling immediately prevents U.S. Immigration and Customs Enforcement (ICE) from carrying out civil immigration arrests at immigration courthouses, setting the stage for another high-profile legal battle over President Donald Trump’s immigration agenda.

The decision, issued by U.S. District Judge Casey Pitts in San Francisco, temporarily bars ICE from making arrests at immigration courthouses across the country. The judge concluded that the agency failed to properly justify its policy change before expanding immigration enforcement inside and around those facilities.

Federal Judge Blocks ICE Courthouse Arrest Policy

In his ruling, Judge Pitts determined that ICE’s decision-making process was inconsistent and failed to meet the requirements of federal law. He wrote that the agency offered shifting explanations about whether immigration courthouses were covered under its updated enforcement guidance.

According to Pitts, the record showed more than simple administrative mistakes. He concluded that ICE failed to demonstrate it had fully considered the consequences of removing previous limits on courthouse arrests before implementing the new policy.

The ruling marks the first nationwide injunction against the Trump administration’s courthouse arrest policy. A separate federal case in New York had previously blocked similar enforcement actions at two immigration courts in that state, but Tuesday’s decision extends those restrictions across the United States.

Conflicting Government Explanations Raised Questions

Judge Pitts also pointed to statements made by Department of Justice attorneys during the New York litigation. Government lawyers acknowledged that earlier court filings contained what they described as a factual error regarding ICE’s policy.

DOJ attorneys later argued that ICE’s 2025 enforcement guidance was never intended to specifically apply to civil immigration arrests in or around Executive Office for Immigration Review (EOIR) immigration courts.

Pitts cited those conflicting positions as evidence that the government itself appeared uncertain about the scope of its own immigration enforcement policy.

Why The Judge Ruled Against The Trump Administration

The court ultimately found that ICE violated the Administrative Procedure Act, a federal law requiring government agencies to carefully review and explain significant policy changes before putting them into effect.

Judge Pitts wrote that the Trump administration failed to adequately address concerns that courthouse arrests could discourage migrants from appearing for scheduled immigration hearings.

Under the Biden administration, ICE generally prohibited civil immigration arrests near courthouses after officials concluded the practice could discourage individuals from attending court and interfere with the judicial process.

The Trump administration reversed that approach as part of its broader effort to strengthen immigration enforcement and increase the removal of individuals who are in the country illegally or facing deportation proceedings.

In recent months, ICE officers began making arrests at immigration courthouses, including locations where asylum seekers and other migrants are required to appear for hearings.

Another enforcement strategy also received attention. Government attorneys sometimes moved to voluntarily dismiss certain immigration cases. Once those proceedings were dismissed, some migrants believed their legal cases had ended. Instead, ICE officers were able to take individuals into custody outside the courthouse under different legal authority.

Department of Homeland Security Pushes Back

The Department of Homeland Security quickly criticized the ruling.

James Percival, general counsel for DHS, argued that individuals ordered removed by immigration judges should be taken into custody in much the same way criminal defendants are detained after sentencing.

Writing on social media, Percival called the decision an example of judicial activism and argued that it interferes with the federal government’s ability to enforce immigration law.

Supporters of the Trump administration say courthouse arrests help ensure individuals with final removal orders are taken into custody efficiently while protecting public safety and strengthening immigration enforcement.

Critics argue that making arrests at courthouses discourages migrants from attending required hearings, creating additional challenges for an already overwhelmed immigration court system.

What Happens Next?

The legal battle is expected to continue.

The Trump administration is widely expected to appeal the ruling, and the dispute could eventually reach a federal appeals court or even the U.S. Supreme Court.

Immigration remains one of the defining issues of President Trump’s second term, and court challenges have become a frequent obstacle to implementing key enforcement priorities. The outcome of this case could have significant implications for how far the federal government can go in carrying out immigration enforcement at courthouses nationwide.

With additional legal challenges already underway, the fight over the administration’s immigration policies is far from over, making this a case many Americans will be watching closely in the months ahead.