The court ruling on sex for prisoners came after an inmate serving time in a prison in the northern city of Asti was denied the right to have sex with his wife.