SACRAMENTO, Calif. — Their state budgets flush with cash, Democratic and Republican governors alike want to spend some of the windfall on projects aimed at slowing climate change and guarding against its consequences, from floods and wildfires to dirty air.

Democratic governors such as California’s Gavin Newsom and Washington’s Jay Inslee have been clear about their plans to boost spending on climate-related projects, including expanding access to electric vehicles and creating more storage for clean energies such as solar. Newsom deemed climate change one of five “existential threats” facing the nation’s most populous state when he rolled out his proposed state budget this past week.