Gig companies spent $224 million to write their own labor law. The state Supreme Court could throw it out