Defeated at home, Obama looks abroad to secure his legacy 2 years ago