Toshiba Corp. /zigman2/quotes/205628942/delayed JP:6502 -1.07% and Western Digital Corp. /zigman2/quotes/204213617/composite WDC -3.01% officially settled litigation Tuesday that should clear a path for a long-planned sales of Toshiba's flash-memory unit. Toshiba has agreed to sell the business to a consortium led by private-equity firm Bain Capital, which includes Apple Inc. /zigman2/quotes/202934861/composite AAPL -2.26% , Dell Technologies Inc., Seagate Technology PLC /zigman2/quotes/201824240/composite STX -1.30% and others. Western Digital made its own bid for the assets, and eventually sued Toshiba based on joint-manufacturing agreements. Western Digital confirmed reports earlier in the day of a settlement with a filing Tuesday afternoon that breaks down the revised agreement for new manufacturing facilities. Toshiba is seeking to sell its profitable flash-memory unit as part of an effort to avoid having its stock delisted in Japan due to struggles at its U.S. nuclear subsidiary, Westinghouse. Western Digital shares increased more than 2% in after-hours trading Tuesday.