SUNNYVALE, Calif. — Yahoo says it will spin off remaining stake in Alibaba, helping to reduce billions in taxes.