A Delaware bankruptcy judge approved the sale of the bankrupt company’s assets to Abu Dhabi’s investment arm.