Israel's Security Cabinet recommended approval of a ceasefire deal after Prime Minister Benjamin Netanyahu confirmed an agreement had been reached.