Obama 'confident' of foreign policy progress in final months