A lawmaker is looking to hold data centers accountable for their energy use.