Texas' highest criminal court narrowly ruled Wednesday that a death row inmate is mentally capable enough to execute, despite a U.S. Supreme Court ruling that his intellectual capacity had been improperly assessed and agreement by his lawyer and prosecutors that he shouldn't qualify for the death penalty.

In a 5-3 ruling with one judge not participating, the Texas Court of Criminal Appeals said it reviewed the case of convicted killer Bobby James Moore under guidance from the Supreme Court's March 2017 decision and determined that Moore isn't intellectually disabled based on updated standards from the American Psychiatric Association.

"It remains true under our newly adopted framework that a vast array of evidence in this record is inconsistent with a finding of intellectual disability," the Texas court's majority wrote. "We conclude that he has failed to demonstrate adaptive deficits sufficient to support a diagnosis of intellectual disability."

The Supreme Court last year said the state court used outdated standards to reach its earlier decision on Moore. In a lengthy dissent joined by judges Bert Richardson and Scott Walker, Judge Elsa Alcala wrote that the majority got it wrong. "The majority opinion's assessment of the evidence in this record is wholly divorced from the diagnostic criteria that it claims to adhere to," she wrote.

The ruling came despite Harris County prosecutors telling the court they believed Moore is mentally disabled and shouldn't be found eligible for the death penalty. Cliff Sloan, who argued Moore's case before the Supreme Court, said Wednesday's ruling was "inconsistent" with the high court's decision.