Union not a solution but a professional body of techies can do wonders in improving working conditions and pay.
nasscom is IT companies association that tends to dictate the working conditions and hiring policies and uses lobbying to silence government oversight in India.
A similar body of tech pros in America can go long way in keep companies in control.
recently some indian professional bodies of techies exposed nasty profiteering practices in in Indian IT services companies that led to halting of large scale layoff of tech pros who are age 40 . It was found that CEO and sr mgmt staff wanted to use this layoff to ripoff extra bonus by showing saving by replacing %0% older employees with freshers from college.