A union would have incentive for foreigners to e.g. come to the US, so the US get a larger slice of the market. On the other hand they don't have an interest in those workers e.g. having lesser rights or lower compensation. Because then foreigner workers become more attractive than their existing members, thereby preventing those members from having long term success. So it depends on how you view e.g. H1B.
It really isn't that complicated if you think about it.
Also it depends what you mean by pro immigration. No union is going to be pro liberal immigration rules, since they don't want to undermine their own members. For it make sense for a union it has to be employees who are lacking, either in numbers or skill, in the country and can therefor expand the country's share of the market.
Ban H1B