DETROIT—Just two years after it was rescued and reconstituted through bankruptcy and a government bailout, GM has posted the biggest profit in its history. MORE