Meta and Microsoft have been investing heavily in AI infrastructure in recent years, and are set to still shell out billions in capital expenditures.