Iran and Qatar were the mega-funders of Hamas. Iran had to drop their Hamas adventure after the USA-Israel wacked Iran hard 2x months ago.
So only Qatar was left to supply Hamas with funding. One bombing/missile attack from Israel and Qatar stopped this mischief.
There are many of us who thinks this showed PDJT in his “most bestest Art of the Deal mode”. :-)
He of course knew about the Israeli attack - and in all likelihood approved. However, after the attack the US administration, and the Israelis denied any US fore knowledge, of course. And President Trump scolded Netanyahu and had him apologize to the Emir. However, the ruler of Qatar who has lived all his life in the Arab world knew exactly what that meant. That he was disposable. And PDJT explained what had to be done; and pressure was put on Hamas.
Not that difficult since the Hamas billionaires are living in Qatar. Probably the most difficult was to make the Hamas leaders force the Hamas terrorists in Gaza to give up their hostages, but I assume pressure was put on them via their families or some such like...