Israel will adopt a proposal by US President Donald Trump's Middle East envoy for an extension to the ceasefire in Gaza, the office of the Israeli prime minister has announced.