The Minnesota man who attacked state lawmakers in their homes last year was expected to be sentenced to life in prison.