California’s giant ride-hailing and delivery companies suffered a major setback Friday as a state Superior Court judge invalidated a 2020 ballot proposition that allowed Uber, Lyft, DoorDash and other businesses to classify their workers as independent contractors. In a lawsuit brought by the Service Employees International Union, Alameda County Superior Court Judge Frank Roesch ruled that parts of Proposition 22 are unconstitutional because they infringe on the power of the Legislature to include app-based drivers under the state’s workers’ compensation law. Gig economy companies spent more than $220 million last year in the nation’s costliest-ever ballot initiative campaign after the...