Inaccurate headline. Recipients of H1B work visas are not legal immigrants. H1B is a temporary non-immigrant work permit.
In the long run, we should go for a point-based immigration system like Canada.
Anyway, the issue here is that the archaic laws discriminate based on race (country of origin) which is both unfair and doesn't make sense for the category (employment-based visa).