On the ensemble Kalman inversion under inequality constraints