Konkursdomstol i New York godkänner flygbolagets investeringsavtal.