The Trump administration’s attempt to blacklist Anthropic from federal use just got slapped down in court. Judge Rita Lin of the US District Court for the Northern District of California ruled yesterday that the government illegally retaliated against the Claude maker after it refused to drop restrictions on lethal autonomous warfare and mass surveillance of Americans. The ruling vacated the directives and ordered their rescission.

Lin didn’t mince words. “The undisputed record shows that the challenged actions constituted unlawful retaliation in violation of the First Amendment,” she wrote, granting key portions of Anthropic’s summary judgment motion. The administration had gone far beyond simply not using the technology — Trump and Defense Secretary Pete Hegseth ordered all federal agencies to permanently stop using Anthropic products and banned defense contractors from doing any business with the company, even work unrelated to the military.

The judge was particularly unimpressed with the government’s shifting justifications. The original risk assessment leaned on the claim that Anthropic had backdoor access to its technology once deployed in national security systems. But as Lin noted, the defendants “have now backed away from the thrust of their risk assessment” and conceded that Anthropic “undisputedly lacks any such access.” Their technology, the government ultimately admitted, is no riskier than any other black-box AI model.

This case sits at an intersection that’s becoming increasingly familiar: AI safety commitments colliding with government procurement power. Anthropic has made its restrictions on military and surveillance use a core part of its public positioning, much like it did when it declined to provide certain capabilities to defense clients before the political winds shifted. The ruling signals that a company’s stated ethical guardrails can’t be treated as a security vulnerability just because an administration finds them inconvenient. Lin’s line that “the empty invocation of national security is not a blank check to punish and retaliate against government critics” will likely echo well beyond this one vendor dispute.