AI GovernanceLegal ExplainerJul 8, 2026, 4:21 PM· 4 min read· #5 of 5 in ai

Federal Court Rules Government's LLM-Driven Grant Cancellation Unconstitutional, Citing First Amendment Violation

A federal judge has struck down the mass cancellation of over 1,400 federal grants, ruling that the government's use of ChatGPT to flag and terminate research based on ideological keywords violated the First Amendment.

By Factlen Editorial Team

Civil Liberties Advocates 45%Legal Scholars 35%Government Efficiency Proponents 20%
Civil Liberties Advocates
Argue that the government cannot use AI to bypass constitutional protections or launder discriminatory intent.
Legal Scholars
Focus on the precedent this sets for administrative law, emphasizing that agencies legally own the outputs of the AI tools they deploy.
Government Efficiency Proponents
Maintain that AI tools are necessary to rapidly audit massive federal budgets and enforce executive mandates, despite legal setbacks.

What's not represented

  • · OpenAI / AI Developers
  • · Affected Grant Recipients

Why this matters

As governments worldwide rush to integrate generative AI into their administrative workflows, this ruling establishes a definitive legal boundary: the state cannot use an algorithm to bypass the Constitution. It ensures that human civil liberties remain protected against automated, viewpoint-based censorship.

Key points

  • A federal court struck down the mass cancellation of over 1,400 federal grants by the Department of Government Efficiency.
  • Staffers used ChatGPT to flag research related to DEI, gender, and LGBTQ topics for termination.
  • The court ruled that the government legally owns the AI's outputs when adopting them for administrative decisions.
  • Terminating the grants based on ideological keywords was ruled a violation of the First Amendment.
  • The decision sets a major precedent preventing the government from outsourcing unconstitutional censorship to algorithms.
1,400+
Federal grants canceled
$100M+
Total funding terminated
120
Character limit in AI prompt

A federal court has drawn a definitive line on how the United States government can deploy artificial intelligence to police its own funding, striking down the mass cancellation of over 1,400 federal grants.[1][4]

The landmark ruling in American Council of Learned Societies v. National Endowment for the Humanities marks a watershed moment for AI governance and civil liberties. The court found that the government's use of an off-the-shelf large language model to flag and terminate research based on ideological keywords violated the First Amendment.[1][3]

The mechanism behind the mass cancellations reveals the unprecedented speed at which generative AI can execute administrative mandates. Following the presidential inauguration in early 2025, the newly formed Department of Government Efficiency (DOGE) was tasked with aggressively reducing federal spending and eliminating programs tied to "diversity, equity, inclusion, and accessibility."[1][2]

To process the massive volume of active federal grants, two DOGE staffers, Justin Fox and Nathan Cavanaugh, arrived at the National Endowment for the Humanities (NEH) with a novel strategy. Rather than manually reviewing thousands of pages of academic proposals, they turned to OpenAI's ChatGPT.[2]

The Department of Government Efficiency used ChatGPT to rapidly terminate over $100 million in federal research funding.
The Department of Government Efficiency used ChatGPT to rapidly terminate over $100 million in federal research funding.

According to testimony reported by The New York Times, the staffers fed descriptions of hundreds of NEH grants into the chatbot with a highly specific, rigid prompt designed to automate the ideological vetting process.[2]

The prompt read: "Does the following relate at all to D.E.I.? Respond factually in less than 120 characters. Begin with 'Yes' or 'No.'" The AI obliged, rapidly categorizing years of federally funded research in mere seconds.[1][2]

Projects were flagged simply because terms related to LGBTQ communities, race, or gender appeared in the text. In one instance revealed during testimony, a military research project was targeted and canceled simply because ChatGPT noted that it "explicitly says LGBTQ."[2]

The government then rubber-stamped the chatbot's outputs, adopting them wholesale to terminate more than $100 million in funding across various agencies. The speed of the AI allowed the department to execute the cuts at a scale that would have taken human reviewers months to achieve.[1][2]

The National Endowment for the Humanities saw hundreds of its grants flagged and canceled by the AI tool.
The National Endowment for the Humanities saw hundreds of its grants flagged and canceled by the AI tool.
The government then rubber-stamped the chatbot's outputs, adopting them wholesale to terminate more than $100 million in funding across various agencies.

The sweeping cancellations triggered immediate legal action. The Modern Language Association, the American Council of Learned Societies, and the American Historical Association filed a joint lawsuit, arguing the terminations were an unlawful exercise of viewpoint discrimination.[4]

In its legal defense, the government attempted to distance itself from the AI's outputs. Federal attorneys argued that the ChatGPT exchange merely provided "context" for the reviewers and did not taint the ultimate human decisions to terminate the grants.[1]

The federal court rejected this defense entirely. The judge found that the agency "selected the AI tool, formulated the prompt, and defined the operative viewpoint-based criterion" that drove the mass cancellations.[1]

Because the agency adopted the classifications generated by the LLM to justify terminating grant after grant, the court ruled that "those classifications are the Government's own for constitutional purposes."[1]

The constitutional violation was stark. Terminating funding based on its purported connection to "disfavored ideas" was ruled a clear violation of the First Amendment's protection against government censorship.[1][3]

Furthermore, the court noted that canceling grants because they referenced a particular race, gender, or protected class defied the Constitution's promise of equal protection, turning the AI into an instrument of automated discrimination.[1]

The rigid prompt used by DOGE staffers provided a 'smoking gun' of discriminatory intent, according to legal scholars.
The rigid prompt used by DOGE staffers provided a 'smoking gun' of discriminatory intent, according to legal scholars.

Legal scholars note that the candor of the dialogue between the DOGE staffers and ChatGPT provided a rare "smoking gun" of discriminatory motivation. The user explicitly asked the chatbot to discriminate based on viewpoint, and the chatbot provided the exact rationale needed to execute the cuts.[1]

As federal agencies rush to integrate generative AI into their workflows to save time and money, the ruling serves as a stark warning about the limits of algorithmic administration.[1][3]

The decision establishes a vital precedent: the government cannot launder unconstitutional censorship through an algorithmic intermediary. The state remains fully liable for the constitutional violations generated by the tools it chooses to deploy.[3]

Ultimately, the ruling affirms that while large language models are powerful tools for bureaucratic efficiency, the constitutional obligations of the state cannot be outsourced to a chatbot.[1][4]

How we got here

  1. January 2025

    The Department of Government Efficiency (DOGE) is formed with a mandate to aggressively reduce federal spending.

  2. Early 2025

    DOGE staffers use ChatGPT to scan and cancel over 1,400 federal grants at the National Endowment for the Humanities.

  3. Late 2025

    Academic associations file a joint lawsuit challenging the mass cancellations as unconstitutional.

  4. May 2026

    A federal court rules the AI-driven cancellations violated the First Amendment and equal protection.

Viewpoints in depth

Civil Liberties Advocates

Argue that the government cannot use AI to bypass constitutional protections.

Organizations like the ACLU and the Freedom Forum view this ruling as a critical firewall against automated state censorship. They argue that without this precedent, the government could easily launder discriminatory intent through the 'black box' of an algorithm, claiming that an unbiased machine made the decision. By holding the agency responsible for the AI's outputs, civil liberties advocates believe the court has preserved the core protections of the First Amendment in the digital age.

Legal Scholars

Focus on the precedent this sets for algorithmic administrative law.

Legal analysts emphasize the mechanical nature of the court's decision. The ruling establishes that when a government agency selects an AI tool, writes the prompt, and adopts the output, the resulting classification is legally the government's own. Scholars note that the candor of the ChatGPT prompt provided a rare 'smoking gun' of discriminatory intent, making this an ideal test case for establishing the boundaries of algorithmic administration.

Government Efficiency Proponents

Maintain that AI tools are necessary to rapidly audit massive federal budgets.

Proponents of the aggressive spending cuts argue that the sheer scale of the federal bureaucracy makes human review of every grant impossible. They view the use of large language models as a necessary innovation to enforce executive mandates and eliminate wasteful spending. While acknowledging the legal setback, these proponents argue that the government must refine its prompts and AI deployment strategies rather than abandoning algorithmic audits altogether.

What we don't know

  • Whether the government will appeal the ruling to a higher court.
  • How federal agencies will adjust their internal guidelines for using generative AI in the wake of the decision.
  • If the $100 million in canceled funding will be fully restored to the original grant recipients.

Key terms

Viewpoint Discrimination
A First Amendment violation where the government penalizes or suppresses speech specifically because of the ideology or perspective it expresses.
Equal Protection Clause
A constitutional guarantee that a state must treat an individual in the same manner as others in similar conditions and circumstances.
Large Language Model (LLM)
An artificial intelligence system trained on vast amounts of text, capable of understanding, summarizing, and generating human-like responses.

Frequently asked

What exactly did the government use ChatGPT for?

Staffers at the Department of Government Efficiency used ChatGPT to scan thousands of federal grant descriptions and flag them for cancellation if they related to DEI, gender, or LGBTQ topics.

Why was the AI's use ruled unconstitutional?

The court found that terminating funding based on an AI flagging 'disfavored ideas' violated the First Amendment, and targeting protected classes violated the Equal Protection Clause.

Can the government still use AI to review grants?

Yes, agencies can use AI for administrative efficiency, but this ruling establishes they cannot use it to execute viewpoint-based discrimination or bypass constitutional rights.

Sources

Source coverage

4 outlets

3 viewpoints surfaced

Civil Liberties Advocates 45%Legal Scholars 35%Government Efficiency Proponents 20%
  1. [1]Tech Policy PressLegal Scholars

    The Learned Societies Decision Should Serve as a Handbook of What Not to Do With LLMs

    Read on Tech Policy Press
  2. [2]The New York TimesGovernment Efficiency Proponents

    How Two DOGE Staffers Used ChatGPT to Cancel $100 Million in Federal Grants

    Read on The New York Times
  3. [3]Freedom ForumCivil Liberties Advocates

    When Government Funding and AI Censorship Collide

    Read on Freedom Forum
  4. [4]American Council of Learned SocietiesCivil Liberties Advocates

    Federal Court Strikes Down Unlawful Grant Terminations in Landmark First Amendment Ruling

    Read on American Council of Learned Societies
Stay informed

Every angle. Every day.

Get ai stories with full source coverage and perspective breakdowns delivered to your inbox.