The Cambridge professor is funding scholarships for two disadvantaged students as she retires.