President Obama found one of his closest allies in Germany’s Angela Merkel but had a frigid relationship with Russia’s Vladimir Putin.