Facebook has "long known" that employers were using its platform for gender discrimination.