A district court on Wednesday ordered the government to pay ¥400,000 in damages to an inmate who was unjustifiably held for months in solitary confinement in a cell equipped with a surveillance camera.