Lemme get this straight...taxes paid for the basic research; that is, paid for something for which there was zero obligation to come up with a new drug. No shareholders to make happy, no board to placate. Go do research and write some papers.
He found something, and a drug company willing to put up the other 99.99% of the money required to try to take the drug to market (even though the odds of that happening are miniscule) paid both the university and the researcher for the rights to use that discovery (and, as I understand it, usually to get a share of the profits should the drug be successful).
So for a nominal tax-based fee (funding research, not bringing drugs to market), private companies get access to research results that a private company may not have even tried and the institutions involved get a funding bump. And maybe some malady cured as a result. Unless you're a serious "screw you I got mine" libertarian, that seems like how tax supported basic research should to work.