The California court gives the two ride-hailing firms 10 days to challenge the ruling.