The Trump administration has canceled nearly $8 billion in funding for climate-related projects in primarily Democratic-controlled states, a top administration official said on Wednesday.

The move came hours after the same official, Office of Management and Budget Director Russell Vought , revealed that the Trump administration had frozen about $18 billion in federal funding to two major infrastructure projects in New York City.

"Nearly $8 billion in Green New Scam funding to fuel the Left's climate agenda is being cancelled," Vought wrote in a post on the social media site X, on the same day that the federal government shut down after Congress did not pass a stopgap funding bill.

Read more CNBC politics coverage

Watch: Trump details plan to end Israel war with Hamas in Gaza

See Full Page