Under the agreement, Riek Machar will join a government of national unity and become first vice president