French supermarket chain Leclerc has won an appeal against a court decision ordering it to pay back "discounts" worth EUR23.3m (US$31.5m) to a group of suppliers.