US politicians are scrambling to tame the soaring cost of electricity that threatens to upend this year’s congressional elections.