Israel's cabinet on Wednesday approved a temporary ceasefire with the Hamas militant group that is expected to bring the first halt in fighting in a devastating six-week war and win freedom for dozens of hostages held captive in the Gaza Strip, in exchange for the release of Palestinians detained in Israeli prisons.