The chief executives of both Google and Amazon said this week that their companies will continue their unprecedented spending on data centers and other infrastructure for artificial intelligence despite tariff concerns and lingering questions around the future of AI computing demand.