US Supreme Court orders lower court to determine competency of death row inmate with dementia