Israel’s cabinet has approved a deal for a ceasefire in Gaza that would release dozens of hostages held there and pause the 15-month war with Hamas, bringing the sides a step closer to ending their deadliest and most destructive fighting ever.