After all , Ronald Reagan , buffeted in his second term by the Iran-contra scandal , managed to shore up his administration , make major progress in arms control and serve out his final months as a popular president .