US auto giant General Motors last week agreed to sell a majority stake in all of its European operations except for the Swedish brand Saab to Magna and Sberbank , two months after GM emerged from bankruptcy .