US vows to work with allies on any Afghanistan withdrawal