A California judge has granted a state request for a preliminary injunction blocking Uber Technologies and Lyft from classifying their drivers as independent contractors rather than employees.