Michael Skakel, a cousin of the Kennedy family, was granted bail Thursday and released from prison as he awaits a new trial in the 1975 murder of his neighbor Martha Moxley.

The Associated Press reports:

"Skakel, the 53-year-old nephew of Robert F. Kennedy's widow, Ethel, touched his hand to his chest and looked back at his supporters in the courtroom, his brothers among them, as the judge set bail at $1.2 million. He has been in prison more than 11 years on a sentence of 20 years to life but was expected to be freed shortly after the hearing in Stamford Superior Court."As conditions of the bail, the judge ordered that Skakel live in Connecticut and wear a GPS tracking device. His lawyer said moments after the hearing ended that Skakel was 'very happy' about the outcome."

Last month, Judge Thomas Bishop ruled that Skakel's original trial attorney, Michael Sherman, failed to adequately represent Skakel when he was convicted in Moxley's death.

Prosecutors in Connecticut are appealing that ruling.

Both Skakel and Moxley were 15 at the time of the killing. Moxley's body was discovered under a tree in her family's backyard in Greenwich, Conn. Pieces of a golf club were found next to her. Skakel was a suspect, but did not face trial until 2000. He claimed he was at his cousin's house on the night of the killing, but was convicted in 2002.

Skakel is a nephew of Ethel Kennedy, the wife of Robert F. Kennedy.

Update at 7:50 p.m. ET: Skakel Out Of Jail

The Associated Press reports: "No longer in handcuffs or leg shackles, Kennedy cousin Michael Skakel walked out of court Thursday into the autumn chill a free man for the first time in more than a decade, released on bail while prosecutors appeal a ruling granting him a new trial in the 1975 slaying of neighbor Martha Moxley."

Update at 1:26 p.m. ET: Reactions

Defense attorney Hubert Santos said Skakel was "very happy" about Thursday's ruling.

In a statement, Skakel's family said: "This is the first step in correcting a terrible wrong. We look forward to Michael being vindicated and justice finally being served."

Dorothy Moxley, Martha Moxley's mother, said Thursday she was disappointed.

Copyright 2016 NPR. To see more, visit http://www.npr.org/.