The question is not whether foreigners are people, but whether they are a part of "the people", usually taken to mean "the people of the United States" - which is the context in which "the people" first appears.