US, Afghans agree most of pact, elders to make final decision