Alibaba Group Holding Ltd. reported a surge in revenue from China’s AI boom, helping assuage investors nervous about the fallout from a worsening battle with Meituan and JD.com Inc. in internet commerce.