Israel's Cabinet has approved the Gaza ceasefire deal that would pause the fighting and release dozens of hostages held by militants, along with Palestinians imprisoned by Israel.