Texas court tosses sentence of state’s longest-serving death row inmate