In its intervention, the Justice Department said the law violates the Fourteenth Amendment's equal protection guarantee by requiring companies to guard against unintended discriminatory effects while allowing some discrimination aimed at promoting diversity.