how did the northwest ordinance establish guidelines for the expansion of the us