Israel's full cabinet has approved the Gaza ceasefire deal, Prime Minister Benjamin Netanyahu's office has said.