Wal-Mart wins right to lodge appeal against class action