Mr. Moussaoui received a diagnosis of mental illness by a psychologist who testified on his behalf, but he was found competent to stand trial on terrorism charges. He was sentenced to life in prison in 2006 and is held in the most secure prison in the federal system, in Florence, Colo.