Full Opinion

USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 1 of 48 PUBLISHED UNITED STATES COURT OF APPEALS FOR THE FOURTH CIRCUIT No. 26-1874 THE UNITED STATES OF AMERICA, Plaintiff – Appellee, v. THE COMMONWEALTH OF VIRGINIA; JAY JONES, in his official capacity as Attorney General of Virginia, Defendants – Appellants, and STEVE DESCANO, in his official capacity as Commonwealth Attorney for Fairfax, Virginia, Defendant. ------------------------------ CITIZENS FOR RESPONSIBILITY AND ETHICS IN WASHINGTON; FEDERALISM PROFESSORS; THE RODERICK & SOLANGE MACARTHUR JUSTICE CENTER; LEGAL AID JUSTICE CENTER, Amici Supporting Appellants. HON. KENNETH T. CUCCINELLI II, Amicus Supporting Appellee. No. 26-2258 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 2 of 48 THE UNITED STATES OF AMERICA, Plaintiff – Appellee, v. THE COMMONWEALTH OF VIRGINIA; JAY JONES, in his official capacity as Attorney General of Virginia, Defendants – Appellants, and STEVE DESCANO, in his official capacity as Commonwealth Attorney for Fairfax, Virginia, Defendant. ------------------------------ CITIZENS FOR RESPONSIBILITY AND ETHICS IN WASHINGTON; FEDERALISM PROFESSORS; THE RODERICK & SOLANGE MACARTHUR JUSTICE CENTER; LEGAL AID JUSTICE CENTER, Amici Supporting Appellants. HON. KENNETH T. CUCCINELLI II, Amicus Supporting Appellee. Appeals from the United States District Court for the Eastern District of Virginia, at Richmond. Robert E. Payne, Senior District Judge. (3:26-cv-00545-REP) Argued: October 27, 2026 Decided: November 23, 2026 Before KING, HEYTENS, and BENJAMIN, Circuit Judges. Preliminary injunctions affirmed in No. 26-1874 and vacated in No. 26-2258 by published opinion. Judge Heytens wrote the opinion, which Judge Benjamin joined. Judge King wrote 2 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 3 of 48 an opinion concurring in part and dissenting in part. ARGUED: Tillman J. Breckenridge, OFFICE OF THE ATTORNEY GENERAL OF VIRGINIA, Richmond, Virginia, for Appellants. Megan Lacy Owen, UNITED STATES DEPARTMENT OF JUSTICE, Washington, D.C., for Appellee. ON BRIEF: Jay Jones, Attorney General, Travis G. Hill, Chief Deputy Attorney General, Gretchen Ellen Nygaard, Deputy Attorney General, Ethan P. Fallon, Deputy Solicitor General, R. Trent Taylor, Deputy Solicitor General, Triston C. O’Savio, Assistant Solicitor General, OFFICE OF THE ATTORNEY GENERAL OF VIRGINIA, Richmond, Virginia, for Appellants. Brett A. Shumate, Assistant Attorney General, Mark R. Freeman, Daniel Tenny, Andrew M. Bernie, Randall C. Smith, Civil Division, UNITED STATES DEPARTMENT OF JUSTICE, Washington, D.C., for Appellee. Nikhel S. Sus, Lauren C. Bingham, CITIZENS FOR RESPONSIBILITY AND ETHICS IN WASHINGTON, Washington, D.C.; Burt M. Rublin, BALLARD SPAHR LLP, Philadelphia, Pennsylvania, for Amicus Citizens for Responsibility and Ethics in Washington. Zachary Ezor, TIN FULTON WALKER & OWEN, Durham, North Carolina, for Amici Federalism Professors. Ellen Noble, Layla Kousari, THE RODERICK & SOLANGE MACARTHUR JUSTICE CENTER, Washington, D.C., for Amicus The Roderick & Solange MacArthur Justice Center. Alex Kornya, Angela Ciolfi, THE LEGAL AID JUSTICE CENTER, Charlottesville, Virginia, Caroline McCance, Emily Lopynski, Rohmah Javed, Abigail Marshak, THE LEGAL AID JUSTICE CENTER, Falls Church, Virginia, for Amicus Legal Aid Justice Center. Mateo Forero-Norena, FEDERATION FOR AMERICAN IMMIGRATION REFORM, Washington D.C., for Amicus Honorable Kenneth T. Cuccinelli II. 3 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 4 of 48 TOBY HEYTENS, Circuit Judge: The United States Constitution “split the atom of sovereignty.” United States Term Limits, Inc. v. Thornton, 514 U.S. 779, 838 (1995) (Kennedy, J., concurring). Under its framework, “both the Federal Government and the States wield sovereign powers.” Murphy v. National Collegiate Athletic Ass’n, 584 U.S. 453, 470 (2018). And because the Federal Government “must act within the States,” Tennessee v. Davis, 100 U.S. 257, 263 (1879), “[t]here are within the territorial limits of each State two governments, restricted in their spheres of action, but independent of each other, and supreme within their respective spheres,” Tarble’s Case, 80 U.S. 397, 406 (1871). This “system of dual sovereignty” was deliberate. Gregory v. Ashcroft, 501 U.S. 452, 457 (1991). “[A] healthy balance of power between the States and the Federal Government,” the Framers believed, would “reduce the risk of tyranny and abuse from either front.” Id. at 458. Those principles resolve these two appeals. In No. 26-2258, we vacate a preliminary injunction preventing the Commonwealth of Virginia from rendering unenforceable existing agreements between the Federal Government and the Commonwealth’s state or local agencies “to perform [the] function[s] of a federal immigration officer” unless certain conditions are met. Va. Code § 15.2-1726.1(A). The Federal Government may not “command” the Commonwealth’s “officers, or those of [its] political subdivisions” (Printz v. United States, 521 U.S. 898, 935 (1997)) to assist with federal immigration enforcement efforts, and the Commonwealth’s supreme lawmaking body has imposed new limits on when its agents may agree to do so. That choice does not violate the intergovernmental immunity doctrine because it neither requires the Federal Government to do anything nor 4 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 5 of 48 limits any private party’s ability to contract with the Federal Government. It also does not violate the Federal Constitution’s Contracts Clause for two separate reasons: (1) because the existing agreements all expressly permit the non-federal party to unilaterally terminate without cause; and (2) even if they did not, the Commonwealth would have constitutionally valid justifications for imposing new terms for future cooperation in any event. The same principles generate a different result in No. 26-1874. There, we affirm a preliminary injunction forbidding enforcement of a new state law that regulates when federal employees may wear facial coverings and must display visible identification while performing their federal duties. See Va. Code § 19.2-83.6:2. We question neither the sincerity nor the reasonableness of the Commonwealth’s objections to masked and otherwise-unidentified law enforcement activities, and we emphasize that States may limit or forbid such conduct by their own state and local officers. But just as Congress may not “issue orders directly to the States,” Murphy, 584 U.S. at 470, States may not issue orders directly to the Federal Government. We thus conclude the law at issue violates the intergovernmental immunity doctrine. I. It is an understatement to say there has been a great deal of public attention paid to immigration enforcement in recent years. During its most recent session, Virginia’s General Assembly enacted several laws involving that topic. Two such laws gave rise to a single underlying lawsuit and two separate interlocutory appeals. The first law—which the parties and the district court call the 287(g) Law—was signed by the governor on April 22, 2026. Explaining that label requires a brief detour. 5 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 6 of 48 Section 287(g) of the federal Immigration and Nationality Act—also known as 8 U.S.C. § 1357(g)—is captioned, “Performance of immigration officer functions by State officers and employees.” It authorizes the federal Attorney General to “enter into a written agreement with a State, or any political subdivision of a State, pursuant to which an officer or employee of the State or subdivision . . . may carry out” various “function[s] of an immigration officer.” § 1357(g)(1). Any such cooperation must be “at the expense of the State or political subdivision,” id., and, when so acting, the state or local employees “shall be subject to the discretion and supervision of the Attorney General,” § 1357(g)(3). Another provision states: “Nothing in this subsection shall be construed to require any State or political subdivision of a State to enter into an agreement with the Attorney General under this subsection.” § 1357(g)(9). In 2025 and 2026, some of the Commonwealth’s agencies and those of its political subdivisions entered into Section 287(g) agreements with the Federal Government. The Commonwealth’s 287(g) Law addresses that development. It creates new rules governing when state or local “law-enforcement agenc[ies]” may “enter into” such agreements and forbids “maintain[ing]” or “renew[ing]” existing agreements that lack specific terms. Va. Code § 15.2-1726.1(A), (C). The 287(g) Law further declares that any existing agreements “shall be deemed void and unenforceable” if they are not modified to comply with the law by September 1, 2026. § 15.2-1726.1(D). The second law—the Mask/Identity Law—was signed by the governor on May 20, 2026. The Commonwealth has long had a general law that restricts the wearing of “any mask, hood, or other device” “with the intent to conceal” the wearer’s identity. Va. Code 6 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 7 of 48 § 18.2-422. In contrast, the Mask/Identity Law is a new provision that applies solely to “law-enforcement officer[s],” § 19.2-83.6:2(B)–(E), including “any full-time or part-time employee of a federal law-enforcement agency,” § 19.2-83.6:2(A). The Mask/Identity Law does two things that are relevant here. First, it states that— unless one of eight exceptions applies—“no law-enforcement officer shall wear a facial covering that conceals, obscures, or otherwise covers his face while such law-enforcement officer is engaged in the performance of his official duties.” Va. Code § 19.2-83.6:2(B); see § 19.2-83.6:2(C) (listing exceptions). Second, it declares that—“[e]xcept as otherwise provided by this section”—a law enforcement officer “engaged in the performance of his official duties” must “visibly display” “a badge or insignia bearing such law-enforcement officer’s name or other individual identifier” and “the name of the law-enforcement agency that employs such law-enforcement officer.” § 19.2-83.6:2(D). On June 11, 2026, the Federal Government filed a six-count complaint against the Commonwealth and its Attorney General (collectively, the Commonwealth). 1 The first two counts contend the Mask/Identity Law cannot be enforced against federal law enforcement officers because it violates the intergovernmental immunity doctrine by directly regulating the Federal Government (Count I) and discriminating against it (Count II). The remaining counts challenge the 287(g) Law. Count III asserts that the law violates the Contracts Clause by “substantially impair[ing] existing § 287(g) contracts between entities in 1 The Federal Government also sued a local Commonwealth Attorney, who was later dismissed as a defendant with the agreement of all parties. 7 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 8 of 48 Virginia and the Federal Government.” JA 99. Count IV asserts the 287(g) Law is preempted. And Counts V and VI assert that the 287(g) Law violates the intergovernmental immunity doctrine because it directly regulates the Federal Government and discriminates against it, respectively. The Federal Government sought a preliminary injunction barring enforcement of both laws. The district court bifurcated the preliminary injunction proceedings, conducting separate hearings and issuing separate opinions and orders about the two laws. In its first order, the court preliminarily enjoined the Commonwealth from enforcing the Mask/Identity Law “against any federal officer, employee, or agency involved in enforcing federal immigration laws and regulations.” JA 16. 2 The Commonwealth appealed that injunction, which was docketed as No. 26-1874. See 28 U.S.C. § 1292(a)(1) (authorizing appeals from “[i]nterlocutory orders . . . granting . . . injunctions”). In its second order, the district court preliminarily enjoined the Commonwealth “from, in any way, interfering with the performance of existing § 287(g) agreements by any party to such existing agreements.” SA 18. The Commonwealth appealed that injunction as well, which was docketed as No. 26-2258. We granted the Commonwealth’s motion to consolidate its two appeals. II. “A preliminary injunction is an extraordinary remedy never awarded as of right.” 2 With the consent of the parties and the permission of this Court, the district court later issued corrected versions of its first order and opinion to reflect an updated statutory citation. 8 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 9 of 48 Winter v. Natural Res. Def. Council, Inc., 555 U.S. 7, 24 (2008). Like any other plaintiff, the Federal Government “must establish that [it] is likely to succeed on the merits, that [it] is likely to suffer irreparable harm in the absence of preliminary relief, that the balance of equities tips in [its] favor, and that an injunction is in the public interest.” Id. at 20. Although we review a district court’s decision to grant a preliminary injunction “under the deferential abuse of discretion standard,” PSEG Renewable Transmission LLC v. Arentz Fam., LP, 185 F.4th 497, 507 (4th Cir. 2026), “[a] ruling that rests on an error of law is necessarily an abuse of discretion,” Pendleton v. Jividen, 96 F.4th 652, 656 (4th Cir. 2024). As always, “[w]e review questions of law de novo.” McAdams v. Robinson, 26 F.4th 149, 155 (4th Cir. 2022). 3 III. We vacate the preliminary injunction that bars enforcing the 287(g) Law with respect to existing agreements. The district court concluded the Federal Government was likely to succeed on the merits because rendering such agreements unenforceable violates both the intergovernmental immunity doctrine and the Contracts Clause. We disagree. The intergovernmental immunity doctrine does not apply because the 287(g) Law neither directly regulates the Federal Government nor prevents private parties from contracting 3 The Commonwealth does not challenge the Federal Government’s standing to seek each form of relief presently before us or assert any of its current claims are not ripe. Having satisfied our independent duty to confirm those points, see, e.g., FW/PBS, Inc. v. City of Dallas, 493 U.S. 215, 230–31 (1990), we conclude the Federal Government has standing to challenge the 287(g) Law as applied to pre-existing agreements and to bring a pre-enforcement challenge to the Mask/Identity Law. We also conclude its current claims are ripe. 9 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 10 of 48 with it. See Part III(A). The 287(g) Law also does not violate the Contracts Clause for two separate reasons: (1) because the existing agreements expressly permit unilateral termination by the non-federal party; and (2) even if they did not, the Commonwealth would have constitutionally valid justifications for requiring state and local officials to terminate or renegotiate any such agreements. See Part III(B). And because the Federal Government cannot obtain a preliminary injunction without showing it is likely to succeed on the merits, see, e.g., Northern Va. Hemp & Agric., LLC v. Virginia, 125 F.4th 472, 497 (4th Cir. 2025), we vacate the August 18, 2026, preliminary injunction without reaching the remaining Winter factors. A. The Federal Government is not likely to succeed in showing the 287(g) Law violates the intergovernmental immunity doctrine. Quite the contrary: its arguments get basic federalism principles backwards. Principle #1: The Federal Government cannot issue orders directly to States. See, e.g., New York v. United States, 505 U.S. 144, 175–76 (1992). Principle #2: The Federal Government cannot end-run a State’s own authority by instructing state or local officials to enforce federal law. See, e.g., Printz v. United States, 521 U.S. 898, 935 (1997). Principle #3: States always remain free to change their minds about how to exercise their “sovereign power[s]” going forward. Stone v. Mississippi, 101 U.S. 814, 821 (1879); see id. at 819–20 (rejecting claim that a State could not outlaw lotteries after granting a private party a license to operate one). 10 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 11 of 48 Principle #4: As a matter of both federal and Virginia law, state and local agencies have only those powers the Commonwealth gives them, and any powers that are granted can later be taken away. See, e.g., Ysura v. Pocatello Educ. Ass’n, 555 U.S. 353, 362 (2009); Sinclair v. New Cingular Wireless PCS, LLC, 727 S.E.2d 40, 44 (Va. 2012). Those principles defeat any intergovernmental immunity challenge to the 287(g) Law. The Federal Government could not order the Commonwealth’s own agents— be they state or local officials—to enforce federal law, much less do so at their own expense, see 8 U.S.C. § 1357(g)(1), while under “the direction and supervision of the” Federal Government’s own Attorney General, § 1357(g)(3). The Commonwealth may choose to participate in such efforts or permit its own subordinate political actors to do so. But the inverse is also true. Just as the Commonwealth was allowed to make one choice in the past, it is allowed to make a different choice going forward. Indeed, that is the essence of democratic self-government. The fact that the 287(g) Law says the Commonwealth is willing to permit continued assistance so long as certain new terms are met changes nothing about the intergovernmental immunity analysis. True, the Commonwealth’s list of conditions contains many terms it could not simply impose on the Federal Government or federal contractors. See Va. Code § 15.2-1726.1(C)(1)–(12). But just as the Federal Government may place conditions on receiving federal funds that it could not mandate directly, see, e.g., South Dakota v. Dole, 483 U.S. 203, 206 (1987), States may do the same when deciding whether to participate (or continue to participate) in federal law enforcement efforts. Such conditions do not regulate the Federal Government—much less 11 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 12 of 48 impermissibly—because the Federal Government can always say no and thus decline a State’s assistance. And, unlike with the Spending Clause, we know of no doctrinal basis for saying that a State’s conditions for providing cooperation can ever be improperly coercive. Cf. National Fed’n of Indep. Bus. v. Sebelius, 567 U.S. 519, 575–85 (2012). Far from improving its position, the decisions on which the Federal Government relies only confirm why its intergovernmental immunity arguments against the 287(g) Law are wrong. The Federal Government places greatest emphasis on CoreCivic, Inc. v. Governor of N.J., 145 F.4th 315 (3d Cir. 2025). In that case, the Third Circuit held that New Jersey could not prevent otherwise-willing “private parties”—a term the majority opinion used seven times—from contracting with the Federal Government “to detain people for civil immigration violations.” Id. at 320. The court relied on a line of Supreme Court authority holding that States “cannot regulate private parties in a way that severely undercuts a federal function.” Id. at 322. The court concluded that the challenged law would “functionally bar” the Federal Government from detaining people in New Jersey by “destroy[ing] the federal government’s marketplace” for something that only the Federal Government could purchase—“private immigration[ ] detention.” Id. at 319, 324, 326. None of that has anything to do with this case. The 287(g) Law does not bar any “private part[y]”—let alone “all contractors” in a relevant market—from contracting with the Federal Government to provide immigration-related services, nor does it dictate or forbid any contractual terms. CoreCivic, 145 F.4th at 325, 327. And even though the New Jersey law in CoreCivic also barred “the state” and “its local governments” from providing 12 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 13 of 48 such services (id. at 320), the Third Circuit never suggested those parts of the law violated the intergovernmental immunity doctrine, see id. at 329 (holding the law was “unconstitutional as applied to CoreCivic”). The Federal Government nonetheless insists that CoreCivic supports it because the Third Circuit emphasized that “[i]ntergovernmental immunity is not a formalist doctrine,” deals with “substance” rather than “form,” and prevents States from doing “indirectly” what they cannot do directly. CoreCivic, 145 F.4th at 322. Those statements do not help the Federal Government here. In CoreCivic, the underlying substantive rules were that the Federal Government was entitled to house immigration detainees in New Jersey and enlist help in doing so. See id. at 325–28. As a result, the Third Circuit concluded it did not matter that “the [challenged] law’s text” did not mention the Federal Government because it “ha[d] the exact same effect as a state law that bars the federal government from contracting for private immigration services.” Id. at 321–22 (emphasis added). The Commonwealth’s 287(g) Law does nothing of the sort. 4 The Federal Government also cites United States v. King County, 122 F.4th 740 (9th Cir. 2024). In that case, the Ninth Circuit held a county could not forbid private contractors from providing “essential services, such as fueling and landing stairs” to “ICE charter flights” at a county-owned airfield. Id. at 747. The court began its analysis by holding the county’s restriction violated a 1948 deed (executed under a federal statute) 4 CoreCivic, of course, is not binding on us, and we need not decide whether we would have agreed with the majority or dissent in that case. We simply point out that this situation is far afield from CoreCivic’s self-described “narrow” holding. 145 F.4th at 329. 13 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 14 of 48 giving the Federal Government, as well as “its employees or agents,” the right to use the airport. Id. at 753–55. Having so concluded, the Ninth Circuit also determined the county’s action “violate[d] the intergovernmental immunity doctrine,” both “by preventing ICE from using private [ ] contractors” at the airfield and “by singling out” “contractors who serve ICE charter flights” for special disfavored treatment. Id. at 756–57. Finally, the Ninth Circuit concluded that enforcing the terms of the 1948 deed did not violate the anti-commandeering doctrine because no county “officials [were] being conscripted into carrying out federal immigration laws.” Id. at 758. This case is worlds away from King County. Here, there is no federal statute or deed giving the Federal Government a right to use the Commonwealth’s property or that of its localities. To the contrary, the relevant federal statute emphasizes that “[n]othing in” it “shall be construed to require any State or political subdivision of a State to enter into an agreement with the Attorney General.” 8 U.S.C. § 1357(g)(9). The 287(g) Law does not forbid the Federal Government from using private contractors to do anything, nor does it impose any restrictions (much less discriminatory ones) on private contractors doing business with the Federal Government. And here the Federal Government is asking a federal court to commandeer state resources by requiring the Commonwealth’s own agents to perform certain “function[s] of an immigration officer” (§ 1357(g)(1)) on terms to which the Commonwealth now objects. For our purposes, the most relevant decision is McHenry County v. Raoul, 44 F.4th 581 (7th Cir. 2022), which rejected a series of arguments nearly identical to those the Federal Government presses here. In McHenry, two localities challenged an Illinois law 14 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 15 of 48 “prohibiting State agencies and political subdivisions from contracting with the federal government to house immigration detainees” and requiring “any entity with an existing contract” to terminate it by a specified date. Id. at 585–86. The Seventh Circuit rejected the municipalities’ claims, including an intergovernmental immunity argument. As the court emphasized, the challenged law “impose[d] no direct regulation on any federal official or agency” and did not prevent the Federal Government from “hous[ing] immigration detainees in its own facilities in Illinois or [ ] contract[ing] with private parties.” Id. at 593. The court also concluded that a State’s decision to withhold cooperation “in the immigration context—a possibility contemplated by the relevant federal statutes—does not constitute discrimination against the federal government.” Id. at 594 n.7; accord United States v. California, 921 F.3d 865, 891 (9th Cir. 2019) (stating it “would be inconsistent with” the anti-commandeering principle if “California cannot choose to discriminate against federal immigration authorities by refusing to assist their enforcement efforts” (emphasis in original)). So too here. One final point. Parts of the district court’s opinion can be read as suggesting the 287(g) Law violates the intergovernmental immunity doctrine not because of what it does but because of the motives that may have given rise to it. See, e.g., SA 59 (suggesting the 287(g) Law is invalid because its conditions on further cooperation “are designed to change the way that federal immigration law is enforced,” something the Commonwealth “well knows that it could not directly impose” on the Federal Government). That was error. Just as most preemption questions turn “on what the State did, not why it did it,” Virginia Uranium, Inc. v. Warren, 587 U.S. 761, 774 (2019) (opinion of Gorsuch, J.) (emphasis in 15 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 16 of 48 original), the same is true of the intergovernmental immunity doctrine, see Dawson v. Steager, 586 U.S. 171, 177 (2019) (“treatment rather than intent is what matters”). And what the Commonwealth has done here—setting new terms on which federal actors can leverage state resources to help enforce federal law—does not violate that doctrine. B. The Federal Government is also unlikely to succeed in showing that applying the 287(g) Law to existing agreements violates the Contracts Clause, which declares that “No State shall . . . pass any . . . Law impairing the Obligation of Contracts.” U.S. Const. art. I, § 10, cl. 1. Without question, the 287(g) Law is a “Law,” and we assume without deciding that Section 287(g) agreements are “Contracts.” See Sveen v. Melin, 584 U.S. 811, 818–19 (2018) (emphasizing the Contracts Clause “applies to any kind of contract”). But we conclude that applying the 287(g) Law to the then-existing agreements does not “impair[ ]” any “Obligations” under such agreements and thus cannot support the preliminary injunction the district court granted. “[N]ot all laws affecting pre-existing contracts violate the [Contracts] Clause.” Sveen, 584 U.S. at 819. “To determine when such a law crosses the constitutional line,” the Supreme Court “has long applied a two-step test.” Id. “The threshold issue is whether the [challenged] state law has operated as a substantial impairment of a contractual relationship.” Id. (quotation marks removed). Only if the answer is yes do we turn to the second question: “whether the state law is drawn in an appropriate and reasonable way to advance a significant and legitimate public purpose.” Id. (quotation marks removed). We conclude the Federal Government cannot satisfy that test for two different, yet 16 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 17 of 48 complementary, reasons. First, all the agreements covered by the district court’s injunction expressly permit the Commonwealth’s agents to unilaterally terminate without cause, which means the 287(g) Law does not “substantially impair” (Sveen, 584 U.S. at 819) a contractual relationship at Step 1. Second, even if the agreements did not so provide, neither the Commonwealth’s agencies nor those of its localities may contract away “an essential attribute of [the Commonwealth’s] sovereignty.” United States Tr. Co. of N.Y. v. New Jersey, 431 U.S. 1, 23 (1977). Here, that attribute is the Commonwealth’s power to decide whether and on what terms to assist with the ongoing enforcement of federal law. Cf. Printz, 521 U.S. at 928 (“dragoon[ing]” state and local officers “into administering federal law” violates “an essential attribute of the States’ [ ] sovereignty”). For that reason too, the 287(g) Law does not substantially impair any contractual rights the Federal Government would otherwise enjoy. And even if we were to get to Step 2, the 287(g) Law has the “significant and legitimate public purpose” (Sveen, 584 U.S. at 819) of ensuring that the Commonwealth will decide for itself when its agents and those of its political subdivisions may devote their own resources to helping enforce federal law. 1. It seems hard to argue that the 287(g) Law “operate[s] as a substantial impairment of a contractual relationship” (Sveen, 584 U.S. at 819) when each of the relevant agreements expressly permits the non-federal party to end its cooperation on a going- forward basis without any justification or excuse. That is particularly so given the agreements all contemplate an indefinite relationship with no fixed termination date. The Federal Government could not “reasonabl[y] expect[ ]” (id.) the existing agreements would 17 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 18 of 48 remain in force forever, nor would it “undermine[ ] the contractual bargain” (id.) to permit the Commonwealth to achieve a result those same agreements expressly permit— terminating the existing arrangements. The Federal Government’s contrary arguments are unpersuasive. To begin, we agree that “the power to terminate [ ] contracts at will” does not necessarily “prevent a finding of contract impairment” under the Contracts Clause. United Healthcare Ins. Co. v. Davis, 602 F.3d 618, 628 (5th Cir. 2010). We also agree that just because a contract gives one party a unilateral right to terminate the contractual relationship does not mean that same party can choose to maintain the relationship while also unilaterally altering its terms. See id. But that is not what the 287(g) Law does. Rather, the law is functionally a notice of termination accompanied by a new offer: It declares the Commonwealth is unwilling to maintain the current arrangements going forward while offering new terms the Federal Government remains free to reject. Cf. Restatement (Second) of Contracts § 39(1) (1981) (“A counter-offer is an offer made by an offeree to his offeror relating to the same matter as the original offer and proposing a substituted bargain differing from that proposed by the original offer.”). Nor does it matter the Commonwealth has made clear it is willing to make a new agreement only on its preferred terms. Many if not most “offer[s] to make a contract” entail “an implied threat by one party . . . not to make the contract unless his terms are accepted by the other party.” § 176 cmt. a. Nor can the district court’s likelihood-of-success holding be salvaged by the fact that a few of the Section 287(g) agreements covered by its injunction include provisions 18 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 19 of 48 requiring the parties to provide 90 days’ notice before any termination. For one thing, 25 of the 30 relevant agreements do not require advance notice by the non-federal party, so, even on its own terms, this rationale provides no justification for enjoining the 287(g) Law with respect to those agreements. What is more, even if the 90-day notice provisions constituted “Obligation[s]” that were “impair[ed]” by the 287(g) Law (U.S. Const. art. I, § 10, cl. 1), the proper remedy would be an injunction requiring the counterparties to provide the required notice—not one prohibiting their exit. Cf. Gill v. Whitford, 585 U.S. 48, 73 (2018) (“A plaintiff’s remedy must be tailored to redress the plaintiff’s particular injury.”). And worse still for the Federal Government’s position, it appears it got a formal termination notice for at least one of the agreements with a 90-day notice provision, see SA 405, meaning any proper injunction would need to be limited to—at most—4 of the 30 agreements the current preliminary injunction covers. 5 In any event, we conclude none of this ultimately matters because the Federal Government does not (and could not plausibly) claim it had less than 90 days’ notice that its existing Section 287(g) arrangements would become unenforceable unless it reached new deals with the relevant counterparties. The governor signed the 287(g) Law on April 22, 2026—132 days before the provisions the Federal Government claims impaired its contractual rights took effect. The Federal Government never claims to have been unaware 5 Indeed, any injunction may need to be even further limited. Another local agency with an agreement containing a 90-day notice provision told the Commonwealth that “it had proposed changes” to that agreement “consistent with the 287(g) Law, had not received a response from ICE, and planned to terminate its 287(g) Agreement prior to September 1, 2026, if it did not receive a response from ICE.” SA 404. 19 USCA4 Appeal: 26-2258 Doc: 43 Filed: 11/23/2026 Pg: 20 of 48 of this development, and it filed this lawsuit when there were still 82 days left on the clock. Under those circumstances, we conclude that any failure to comply with the 90-day notice-of-termination procedure contained in a (literal) handful of the relevant agreements neither “undermine[d] the contractual b