U.S. judge sides with death-row inmate