Appeals court reinstates death row for Idaho man