The Fourth Circuit Court of Appeals upheld Virginia's law terminating Section 287(g) agreements between state and local law enforcement and federal immigration authorities, reversing a district court decision that had blocked the state law.

Judge Heytens wrote that Virginia's termination law does not violate the intergovernmental immunity doctrine because it neither directly regulates the Federal Government nor prevents private parties from contracting with it. The court also found no violation of the Contracts Clause, noting that existing agreements expressly permit unilateral termination by the non-federal party. Even absent such provisions, Heytens wrote, "the Commonwealth would have constitutionally valid justifications for requiring state and local officials to terminate or renegotiate any such agreements" because states retain sovereign power to decide whether to assist with federal law enforcement.

In the same case, the Fourth Circuit struck down Virginia's law barring law enforcement officers from wearing masks except in narrowly specified circumstances. The court's 2-1 majority decision found the anti-mask law conflicted with federal authority despite the law applying equally to state, local, and federal officers. Judge Robert Bruce King dissented, arguing that no federal statute, regulation, executive order, or formal policy supported an exemption for individual ICE agents. King wrote that "individualized discretion, untethered to any identifiable source of federal law" does not override state law. He noted federal agents must generally obey state laws, citing traffic law compliance as an example.