From layoffs to IPOs, tech titans are positioning themselves for the next big battle over AI dominance.