Until which year did this territory created by Northwest Ordinance legally exist?