Benjamin Netanyahu’s cabinet has voted to accept the Gaza ceasefire deal, despite threats from coalition partners.