They don't use permanent residency in the ruling of wong kim ark. They just say domiciled. Permanent residency wasn't a thing until like 50 years later. here's multiple pages of the ruling that say chinese subjects in america were subject to the jurisdiction of the US.