Israel’s security cabinet agreed to a ceasefire with the Palestinian militant group overnight after violent clashes killed 260 Palestinians and 12 in Israel in less than two weeks.