A US bankruptcy judge gave General Motors permission on Monday to buy several assets of bankrupt Delphi as part of a deal with a private equity firm that could take the supplier out of bankruptcy.