Fairness-Preserving Empirical Risk Minimization