A private equity firm bought office supplies giant Staples Inc.'s Framingham, Massachusetts, headquarters for $165 million, after a turbulent handful of years for the retailer that was sold to a private equity company in 2017 as analysts say it may be considering an initial public offering.