Judge upholds death penalty in slaying case