Technology giants have shelled out trillions to support insatiable AI demand and the infrastructure buildout.