Students broke into cheers and tears as a former professor at a New York college announced a $1bn donation.