In a controversial deal, Israel's government under Benjamin Netanyahu supported Qatar's payments to Hamas for many years, in the hope that it would turn Hamas into an effective counterweight to the Palestinian Authority and prevent the establishment of a Palestinian state.
https://www.nytimes.com/2023/12/10/world/middleeast/israel-qatar-money-prop-up-hamas.html