"In 2012, Google paid Stanford $80,000 for the license, a sharp decline from the $400,000 paid in 201a and only 1/10 of what Google paid in 2010. Since Google began disclosing these payments, the company has paid Stanford around $3 million in licensing fees. Of course, that’s in addition to the $1.8 million shares that Google issued to Stanford, and which the school sold for $336 million in 2005.Google made up some of the difference by donating $3.4 million to Stanford for scholarships and what the proxy describes as “other philanthropic endeavors”, compared with $3 million in 2011."
[0] https://www.footnoted.com/new-details-in-googles-proxy-on-st...
The share grant must have been fairly early on the history of the company (or else Google won't be able to use PageRank, which was fundamental to Google Search), probably pre-Series A. Google itself wasn't worth that much back then, so the 1M shares was probably bigger slice of a much smaller pie that eventually got diluted through later funding rounds.
https://www.mercurynews.com/2010/12/21/stanfords-ideas-gener...
[1] http://www.redorbit.com/news/education/318480/stanford_earns...