Delphi has won court approval to sell its assets to its lenders and General Motors and appears on track to to emerge from Chapter 11 bankruptcy after four years.