A judge has ruled that California’s new law, Proposition 22, limiting app-based drivers to gig work, is unconstitutional.