The deal ends months of uncertainty about Yahoo after it announced plans to review strategic alternatives.