Yahoo agrees to pay $50 million to settle data breach lawsuit