The artificial intelligence boom has transformed the world’s largest technology companies into the biggest spenders in corporate history. From building…