The Department of Energy said it was canceling grants to build new factories in places like Alabama and Kentucky. Three startups are affected.