Nobody voted Obama to return the money. Nobody had to, he was correcting a moral wrong. And yes, America does sometimes do wrong.
The US illegally froze the money from Iran’s accounts. It was always their money. It wasn’t a payoff, ransom or bribe, it was returning stolen property. Sorry that you hate the people it was stolen from, doesn’t mean you get to keep their stuff.