The Energy Department’s cancellations of projects directly affected 16 states won by Kamala Harris in the 2024 presidential election.