Sears and Kmart live another day as judge approves $5.2 billion plan to keep stores open.