Israeli security cabinet approves ceasefire and hostage deal