In his later life , Shockley was a professor at Stanford and became a staunch advocate of eugenics .