The “Fortnite” maker agreed to pay about $520 million over allegations that it violated children's privacy laws and used misleading gaming features that tricked customers into shelling out millions.