A Chinese-Japanese investment group agreed to buy Saab Automobile and convert the bankrupt Swedish manufacturer into a maker of electric cars.