Utah killer with dementia is competent enough for death sentence to be carried out, judge rules