Critics have charged that Facebook’s “ethnic affinity” ad targeting program empowered buyers to violate federal laws that prohibit discrimination against those looking for homes, work, and financial services.