Device aids recovery of people with spinal injuries, trial finds