Public interest groups are building political will to counter electric utilities’ influence in state governments.