Drivers for Uber and Lyft now have collective bargaining rights after a rare compromise between unions and Silicon Valley.