Office of Management and Budget Director Russell Vought , whose department made the final decision on slashing hundreds of grants, looks on during a House Budget Committee hearing. File Photo by Bonnie Cash/UPI | License Photo

July 25 (UPI) -- The Trump administration admitted that it canceled nearly $8 billion in grants slated for hundreds of clean energy projects "based solely" on whether a state voted for Kamala Harris for president, it was reported Friday.

In a recent court filing, a lawyer for the Energy Department said none of the axed projects lost their funding "based on any programmatic, statutory, cost-reduction or performance-based factor."

The Trump administration attorney added, "The 284 terminated grants had a recipient location and/or at least one place of performance in a state that awarded its electoral votes to Kamala Harris in the 2024 election and has two Democratic-caucusing senators."

The government's admission, first reported by The New York Times, came out as part of a July 15 court filing in a class action lawsuit over the slashed grants.