The order of events says “Qatar paid for a terrorist attack on Israel”.
Israel approved the transfer of money from Qatar. The reason given for it was to pay salaries to Gazans.