If you wanted to pass the refund on wouldn't the most sensible way be to pass it on to the two supermarkets since they were the actual buyers from you?
If the supermarket that raised prices wants to pass that on to their 1000 buyers that would be for them to deal with, not you.