Deal reached to end Anbar sit-in