Big Lots said Friday that it agreed to a sale transaction with an investment firm, allowing hundreds of stores to stay open by transferring its property to other retailers and companies.