TOKYO — Toshiba has cleared one of the last remaining hurdles to a planned sale of its microchip subsidiary and moved a step away from the financial brink. The struggling Japanese conglomerate said Wednesday that it had settled a legal dispute with Western Digital, the San Jose data storage company, that threatened to block the microchip deal.