That’s the law under the 14th amendment. Did Congress pass a law giving citizenship to children born to foreign nationals?
Must have since every child born to LEGAL US residents become US citizens. And that does NOT make them anchor babies since parents are legal permanent residents of US.