Netanyahu has had Trump's support for months and was pretty determined to continue his attacks on Gaza until Trump finally decided Bibi had overstepped the mark, made him apologise to Qatar and with the help of the Arab nations, got him to negotiate with Hamas again. Trump certainly gets credit for that but he could have done it months ago and saved a lot of lives.
Obviously getting the hostages back, stopping the bombing and getting aid in again is a big deal, but as long as Hamas exists I don't think Bibi sees it as job done. It's also in his domestic interests to keep the war going, but he's now been forced to pull back and claim victory. Once the Israeli's pull out, if they ever do, there will be infighting between Hamas, who have already said they won't disarm, and other tribal and political groups for control of the area. The hostage release is a good start, but we're still a long way from a stable region, beachside holiday resorts and the Trump Desert Sands Memorial Golf Course.