General Motors has completed the repurchase of all the preferred shares the government obtained in return for public funds, repaying US$2.1bn to taxpayers.