A federal judge has ruled that it would be unconstitutional for an Indiana prison to deny a transgender inmate sex…