School shooter sentenced to life in prison