The U.S. invested a historic $338 billion in the energy transition last year, led by solar energy, which added 49 gigawatts of capacity in 2024.…