A California appeals court has upheld an order requiring Uber and Lyft to treat their California drivers as employees instead of independent contractors, less than two weeks before voters will be asked to exempt the ride-hailing giants from the state’s gig economy law.