The US has barred major tech and IT outsourcing firms from sponsoring foreign workers for green cards.