The gift will permanently endow the New York institution’s director and chief curator role, held by Thelma Golden for nearly two decades.