Cloudera faces a two-year US ban on sponsoring workers for green cards and will pay $2m over claims it discriminated against American applicants in the US.