Cargill has agreed a $2.2m settlement after facing allegations it discriminated against the colour, race and gender of potential job applicants.