Judge Approves Endeavour Debt-for-Equity Swap