Some states are trying to keep the nation's growing number of data centers from causing higher energy costs for consumers.