That link is to a New York state injunction. Read it carefully. It in no way infers what you claim it does.
I didn’t cite it as legal precedent. It’s just one example of many where a court has said there is nothing in federal law that prevents an illegal alien from renting property.