The deal for the bankrupt retailer will facilitate the transfer of stores and the Big Lots brand to Variety Wholesalers.