Those countries were already enemies of Iran by virtue of housing US bases, military installations, etc.