I believe it was Obama.
I doubt if Obama said that, because the quote makes too much sense. I actually think Charles Krauthammer said it. But I can’t find any proof.