Obama hands off legacy on terror to sharp critic