That's one take. Another take is that people are annoyed that companies like Amazon pay no federal income tax, while income taxes take a sizeable bite out of their own paychecks. Unions are not "punishment" either. They are the embodiment of basic 1st amendment rights of association, speech, etc. Giant corporations are not perpetual victims, and workers have a right to bargain collectively to secure fair wages and working conditions.
US companies pay the highest corporate taxes in the world.
That is before you account for tax subsidies, credits, and deductions. Amazon paid zero federal income tax for 2017 and 2018. In fact, they received tax
refunds. For last year, they paid an effective tax rate of 1.2%.
That image is also old. The Trump tax cuts lowered the corporate tax rate to 21%.
Unions in the USA are neither objective nor bipartisan. They're extremely polarized an biased in favor of a single political demographic. Which leads to them being a method of control and perhaps, pushing agendas.
I hate labor unions in their current form. Nevertheless, unionization is a basic civil right, and I don't see it as a way of "punishing" companies at all. Labor rights are at their weakest point in many decades. If that trend reverses, it's not a punishment, just a cultural trend that companies need to adapt to. If it cuts into their profits, so be it.
In contrast, the recent corporate tax cuts were a gift to their profits. I don't see why in a so-called democracy, corporations should enjoy an endless trajectory of favorable tax treatment and deregulation. Sometimes society moves in the other direction.
Amazon and similar companies have teams of lobbyists that will ensure favorable loopholes in any future legislation anyway.