In two programs with the New York Philharmonic, Esa-Pekka Salonen has constructed a moving exploration of musical legacy.