World leaders agree on Afghan timetable and funding