Thousands of Asda workers have won the latest stage in a decade-long equal pay case against the supermarket that could lead to a payout worth £1.2bn.