What worked for the president on the campaign trail is now becoming his greatest foreign-policy weakness.