A US appeals court has overturned a ruling that allowed hedge funds to keep half a billion dollars that Citigroup mistakenly sent to them, in a victory for the Wall Street bank that could enable it to recoup the money.