Some states are dangling financial incentives. Others are undoing decades of regulatory structures in what they frame as a race to serve the basic needs of residents, avoid a catastrophe and keep their economies on track in a fast-electrifying society.