The Israeli government has approved a Qatari-mediated deal for a pause in fighting with Hamas for a captive and prisoner exchange.