during iran/contra, the iran-iraq war was raging, there was an arms for hostages deal between the us and iran. the us would sell arms to israel, israel would sell the arms to iran, and iran would persuade the palestinians to return us hostages. so, there is precedent for the us to conduct secret deals with their enemies.
United States