Israel gave Hamas seed funding back in the 1980s. They thought it would weaken the PLO. This was when the US funding the Taliban. Having pet Jihandis' was cool back then.
More recently, USA gave ('returned') $1.7 billion to Iran. Of course a large chunk of that has gone to Hamas and Hezbollah and numerous other interests that destabilise Israel and Western powers.