Yahoo missed estimates, but shares rose after hours as the firm said it won’t have to sell as much of its Alibaba stake.