It was in fact to a large extent socialist unions, or unions with a large contingent of socialist and anarchist memembers.
Even the traditionally a-political AFL sent representatives to the socialist Second International.
And crediting Ford for the 40 hour work week is just pure, unadulterated bullshit. By the time Ford cut the work week for his staff, large segments of the work force already had achieved it, and provided the evidence needed that a shift to the 8 hour work week was economically feasible.
And in fact it was one of the so called Capitalist robber barons, Henry Ford, who had the greatest impact on shifting to the 40 hour work week. He proved it could work and blazed the path for all other industrialists to follow (either by choice or by Ford stealing their labor via better terms).