Lets see... trying to please the electorate so that you get re-elected. Isnt that the job?
Every president since Washington has weighed the domestic ramifications of decisions made in the area of foreign affairs. Nothing new here...