As the data center boom takes hold, lawmakers in dozens of states are looking to blunt the impact of high electricity prices.