US companies are plowing money into building data centers as they race to get ahead in artificial intelligence.