Yemen’s internationally recognized government and the Iran-backed Houthi group have agreed to free around 2,700 detainees held throughout the war.