A US bankruptcy court judge has approved the sale of substantially all of Chrysler's assets to a group led by Fiat hours before an expected bankruptcy filing by General Motors.