Alibaba gained despite fiscal Q2 sales coming in lower than expected as earnings beat estimates with AI growth.