As Israeli families celebrated the release of the last hostages held by Hamas, leaders around the world — including some prominent Democrats — credited former President Donald Trump for the breakthrough deal that ended more than two years of captivity.