If H1B workers had the same rights and could demand similar salaries as their local counterparts (while also requiring additional effort and costs to hire) I suspect you would find that firms wouldn't hire very many H1B workers. in effect both policies have the same result.