President Obama sought to ease tensions over trade policy, climate change and the war in Afghanistan.