Updated

A Texas judge granted a temporary injunction delaying the execution of a death row inmate convicted in the 2002 killing of his 2-year-old daughter.

Robert Roberson, 57, was scheduled to be executed Thursday evening, but hours before he was to receive a lethal injection, Travis County Judge Jessica Mangrum ruled that he would be allowed to testify in his case next week.

Mangrum agreed and granted a temporary restraining order to prevent the execution just 90 minutes before Roberson's scheduled execution.

TEXAS COMMITTEE MAKES HISTORIC MOVE APPROVING SUBPOENA FOR DEATH ROW INMATE ONE DAY BEFORE HIS EXECUTION

Texas Execution

Texas lawmakers meet with Robert Roberson at a prison in Livingston, Texas, Sept. 27, 2024.  (Criminal Justice Reform Caucus via AP)

The decision came after a bipartisan group of Texas lawmakers issued a subpoena for Roberson on Wednesday night.

"We urge Governor Greg Abbott to grant a reprieve of 30 days to allow litigation to continue and have a court hear the overwhelming new medical and scientific evidence that shows Robert Roberson’s chronically ill, two-year-old daughter, Nikki, died of natural and accidental causes, not abuse," said Gretchen Sween, one of Roberson’s attorneys, in a statement to Fox News Digital. 

"A reprieve will also give Texas legislators time to investigate why Texas’s vaunted ‘changed science’ habeas law, which allows prisoners to challenge convictions based on science that turns out to be disproven or wrong, is not being applied as intended in the courts."

Executions Governors

Texas lawmakers meet with Robert Roberson at a prison in Livingston, Texas, Sept. 27. (AP Photo/Criminal Justice Reform Caucus)

Roberson was convicted of killing his 2-year-old daughter, Nikki Curtis, in the East Texas city of Palestine. 

The toddler was diagnosed with "shaken baby syndrome," a condition that scientifically no longer holds up.

IDAHO PROSECUTORS REJECT STUDENT MURDERS SUSPECT'S LONGSHOT BID TO HAVE DEATH PENALTY TAKEN OFF TABLE

But in 2022, doctors were taught that the presence of three symptoms known as "the triad" — which included subdural bleeding, brain swelling, and retinal hemorrhages — were proof of shaken baby syndrome.

Robert Roberson and his daughter, Nikki

Robert Roberson and his daughter, Nikki. (Roberson Family)

In the absence of witnesses, the diagnosis was accepted as proof that a child had been violently abused.

TEXAS BOARD REJECTS CLEMENCY FOR MAN FACING EXECUTION IN SHAKEN BABY DEATH

Roberson's supporters say doctors misdiagnosed Curtis' injuries as being related to shaken baby syndrome and that new evidence has shown the girl died not from abuse, but from complications related to severe pneumonia.

READ THE RULING – APP USERS, CLICK HERE:

Following Mangrum's decision, the U.S. Supreme Court denied Roberson’s request for a stay of execution. 

While respecting the denial by Justice Samuel A. Alito Jr., Justice Sonia Sotomayor issued a lengthy statement explaining that the high court did not have grounds to intervene.

"An executive reprieve of thirty days would provide the Texas Board of Pardons and Paroles with an opportunity to reconsider the evidence of Roberson’s actual innocence," Justices Alito and Sotomayor wrote. "That could prevent a miscarriage of justice from occurring: executing a man who has raised credible evidence of actual innocence."

CLICK HERE TO GET THE FOX NEWS APP

Roberson is scheduled to testify at noon Monday.

Fox News Digital's Bradford Betz contributed to this report.