Toshiba shareholders agreed to split off its prized NAND flash memory unit on Thursday.