Under pressure to act on unpopular data centers, the House passed bipartisan legislation to shield consumers from higher energy costs.