Israel and Hamas agreed to swap hostages and prisoners, laying the groundwork for a more comprehensive cease-fire.