An US state court orders the release of an inmate who has been in solitary confinement for more than 40 years.