A California court voted to uphold Proposition 22 in a win for Uber and Lyft