“Most economists” are not quite so overtly political about it like this. There are of course many factors; globalization and trade is a big one affecting both labor and labor union power: competition from overseas, direct or indirect, easily eclipses competition from immigrants. The thing is that trade also has massive benefits to real wages, and has boosted national output substantially. Nuanced discussions will try to examine this tradeoff.