A man whose 2011 shooting rampage killed six people and wounded 13 others, including US Congresswoman Gabrielle Giffords, has been ordered to serve seven consecutive life sentences, plus 140 years in a federal jail.

Jared Lee Loughner, 24, pleaded guilty under an agreement that guarantees he will spend the rest of his life in prison without the possibility of parole.

He avoids a federal death sentence, although state prosecutors could still decide to try him.

Giffords, partially blind, her right arm paralysed and with a limp, came face to face with Loughner at the sentencing on Thursday, standing beside her husband as he spoke of her struggles to recover from being shot in the head.

“Her life has been forever changed. Plans she had for our family and her career have been immeasurably altered,” said astronaut Mark Kelly, both he and his wife staring at the shooter inside a packed courtroom. “Every day is a continuous struggle to do those things she once was so good at.”

One by one, survivors of the attack at a Giffords political event approached the courtroom podium to address Loughner, each turning toward him where he sat stoic and emotionless at a table with his lawyers.

“You took away my life, my love and my reason for living,” said Mavanell Stoddard, who was shot three times and cradled her dying husband in her arms as he lay bleeding on the footpath after shielding her from the spray of bullets.

Loughner’s parents sat nearby, his mother sobbing.

Giffords didn’t speak, but stood by Kelly and kissed her husband when he was done. He grabbed her hand and they walked away, her limping.

Earlier, Loughner told Burns that he would not speak at the hearing.

Both sides reached the deal after a judge declared that Loughner was able to understand the charges against him. After the shooting, he was diagnosed with schizophrenia and underwent forcible psychotropic drug treatments.

It’s unknown whether Pima County prosecutors, who have discretion on whether to seek the death penalty against Loughner, will file state charges against him.

Stephanie Coronado, a spokeswoman for Pima County Attorney Barbara LaWall, said on Wednesday that no decision had been made.