A judge ruled this week that ride-hailing companies must classify their drivers as employees in California.