Georgia county illegally denied gender surgery to deputy: judge