The ruling is a blow to Uber and Lyft, which have argued they are not subject to state labor law. But the court's order could still be upended by a ballot measure backed by the ride-hailing companies.
Uber and Lyft have been fighting California over whether drivers are employees, entitled to benefits, or independent contractors. A state judge orders them to consider all those drivers employees.