The Department of Corrections on Friday gave Ashley Diamond, a transgender inmate and prison rape victim, what a federal judge refused to grant her in April: a transfer to a medium-security prison. The department, which previously maintained that Ms. Diamond was properly placed at Georgia State Prison, transferred her to Jack T Rutledge State Prison after she was touched on the face by another inmate during a group activity and then received a sexually explicit and threatening note from another inmate at a religious service. Ms. Diamond, who has sued corrections officials, charging that they have failed to protect her, had asked the federal judge to order the state to transfer her; he had declined to “second-guess” state authorities. Ms. Diamond, a transgender woman and nonviolent offender, has been housed primarily in men’s maximum-security prisons; her prior stay at Rutledge was the only time during her incarceration that she was not sexually victimized, her lawsuit said.