A state judge has issued a restraining order protecting the name of the Episcopal Diocese of South Carolina.