Investors were worried AWS was falling behind in AI. A new growth trajectory has restored confidence in Amazon’s cloud business.