Drugstore chain Walgreens received approval from U.S. regulators to purchase nearly 2,000 Rite Aid stores, the company said Tuesday.