Microsoft Corp. is planning to spend more than $7.9 billion on data centers, cloud computing and employees in the United Arab Emirates over the next four years, capitalizing on a US government clearance to ship artificial intelligence chips to the Gulf nation.