The president could have started a foreign-policy revolution. Instead, he triggered a foreign-policy revolt.