The Trump administration is canceling about $8 billion in grants for energy projects in mostly Democratic-led states.