Yes, he really did say that
In the category of reality being stranger than fiction:
The president said: "I like to tell people I would rather be -- when history looks back, I'd rather be judged as solving problems and being correct, rather than being popular."
Damn, he sure is doing a heck-of-a-job solving probems and being correct, right? Just ole mister "never has made a mistake" leaving a legacy for posterity.