In the 1898 case of Wong Kim Ark, the Court simply held that a child born of Chinese immigrants who were lawfully and permanently in the United States domiciled here, to use the Courts phrase was a citizen.
And you should read Chief Justice Fuller's dissenting opinion. It's a masterpiece.
When lawyers are involved, common sense isn't.