A California appeals court reversed a lower-court ruling that had found Proposition 22 unconstitutional.