The electric vehicle boom brought massive investments to parts of America that don’t typically vote blue, but now those bets are looking shaky as the industry pumps the brakes on its electric dreams.