the death penalty is just that... a penalty. it happens to be a deterrent of future crimes by the penalized and may serve as a deterrent to future criminals. it is not cruel and unusual punishment, it is a penalty.
sometimes criminals need killing. and G-d wasn’t against killing, he warned against committing murder.
NB: Texas has a Catholic governor.