Protesters in Chile on Friday. The agreement could help end nearly a month of sometimes violent political unrest.