Jacobson v. Massachusetts, 197 U.S. 11 (1905)
A Massachusetts law provided that the board of health of a city or town may require and enforce vaccination and revaccination of its inhabitants, while providing them with a way to get free vaccinations.
https://supreme.justia.com/cases/federal/us/197/11/