A ceasefire agreement between Israel and Hamas has been confirmed by the United States and Qatar, pausing the devastating 15-month war in Gaza and clearing the way for dozens of Israeli hostages to go home.