The U.K. Supreme Court has dismissed supermarket giant Asda's appeal in a long-running battle over equal pay among its workers, handing a defeat to its lawyers Gibson Dunn & Crutcher.

In a judgment published on Friday, the court upheld an earlier ruling that lower-paid shop staff, who are mostly women, can compare themselves with higher paid warehouse workers, who are mostly men.