Food Banks actually have a whole interesting economy they handle within themselves with "fake" money. It's pretty neat.
Grocery Outlet is the big chain that takes "waste" food and other smaller retail stores do the same thing(s).
It's not exactly the same as what you are talking about, as it's generally on the other side of the equation, it's all the "left over" food that never makes it to the grocery store, because the manufacturers over-produced, essentially.
Not all of the items are strictly near expiration, but a very large portion of them are near or past expiration in practice.