California’s worker misclassification law withstood another legal attack Monday when the U.S. Court of Appeals for the Ninth Circuit held that state lawmakers acted rationally in targeting companies that provide services through app-based drivers and couriers.

The unanimous en banc panel rejected arguments by Uber, Postmates and drivers for the companies that the 2019 law known by its enacting legislation, AB 5, violates federal and state equal protection clauses because of its disparate effects on different gig workers.