The hostages were released after Hamas faced widespread criticism and accusations of violating Trump’s peace deal.