Unions had early wins that mostly either didn't go anywhere, or the companies worked around. The real win that normalized it was for capitalistic reasons, when Henry Ford shortened the workday/week because he wanted his workers to buy (and have reason to buy) his cars. Combined with other changes, he figured he'd retain workers better and reduce mistakes from fatigue, and when he remained competitive others followed suit.