Major state interventions that altered labor supply or rebalanced wealth (eg such as standardizing the 8-hour workday, establishing public pensions, or funding universal education) were won through waves of union mobilization and working-class political pressure.
It's not one or the other. Unionization is literally (figuratively) the hand that pulls those levers.