Microsoft Corp. vowed to pay utility rates that will cover the company’s electricity costs to operate data centers in the US, a pledge that coincides with concerns that consumers will be forced to pay more for power as the tech industry rushes to build infrastructure for artificial intelligence.