A court has cleared the way for the Roman Catholic Diocese of Rochester to sell a former Catholic school in Auburn.