Yahoo has said it will pay $50 million in damages and provide free credit-monitoring services to millions of Americans and Israelis following a data breach beginning in 2013 that led to as many as 3 billion accounts being compromised by hackers.