That is exactly what unions do. They setup contracts with the employer to ensure protections and compensation using collective bargaining to balance out the power of the employer for the employer.
Collectively bargaining for hundreds or thousands of employees is obviously more powerful then a single individual bargaining against the same employer, especially when you factor in the information and resource asymmetry that exists in the latter situation.