Northwest Ordinance of 1787 and its impact