The agreement, announced by US President Donald Trump and supported by mediators led by Pakistan, drew praise from across the globe.