A class of Walmart truck drivers is poised to collect tens of millions of dollars in unpaid wages following a federal court ruling, as the courts continue to grapple with when California employers have to pay for workers’ time.

The ruling from the U.S. Court of Appeals for the Ninth Circuit comes after more than a decade of litigation over allegations the retail giant violated professional drivers’ state meal and rest break laws.