The Israeli prime minister’s office announced Thursday that the security cabinet has approved a cease-fire with Palestinian militant group Hamas after nearly two weeks of violence.