Working conditions were deplorable before the advent of unions.  Even non-union workers have benefited, because employers boosted wages, and improved benefits and conditions to avoid having their employees unionize.
We have unions to thank for 8 hour workdays, 40 hour workweeks, vacations, paid sick time, etc.