The Iranians bought junk, we got the hostages back, and then we used the Iranian's money to kill communists in central America.
Yep. He's admitted that even to this day, and that's how you deal with the enemy at the bargaining table sometimes. You give them an offer they can't turn down, and Ollie gave the Iranians technology that was nothing more than a pile of scrap heap, we got our hostages back, and Iran was no more a threat after releasing the hostages than they were holding them.
The Iranians fell for the oldest trick in the military "song book".