Alibaba Group Holding Ltd.’s shares surged to their highest in nearly four years after revealing plans to ramp up AI spending ...