The US president and other world leaders signed the first phase of the Gaza ceasefire deal in Sharm el-Sheik.