A 27-year-old man was sentenced to life in prison without the possibility of parole Friday for the hate-crime killing of a gay former classmate in Foothill Ranch in 2018.