Japan court orders retrial for decades-long death row inmate