The forthcoming ruling will set a binding precedent for more than 10,000 cases, reshaping conditions for millions of platform workers.