Walgreens and Rite Aid will sell 865 stores to rival retailer Fred’s for $950 million, potentially removing the final roadblock thwarting a tie up between the nation’s largest and third-largest drugstore chains. Walgreens is working to close its $9.4 billion purchase of Rite Aid early next year.