The battle for AI dominance has left a large footprint—and it’s only getting bigger and more expensive.