A federal judge has invalidated a New Jersey law passed in 2015 that changed how Alzheimer’s disease facilities are classified, granting summary judgment to a developer on grounds that the 4-year-old law is discriminatory.

U.S. District Judge Peter Sheridan of the District of New Jersey ruled Wednesday that Blake Gardens, a limited liability company based in Mahwah that builds community residences geared to those with Alzheimer’s, succeeded in demonstrating intentional disparate treatment of persons with the disease, and other forms of dementia, as it relates to housing.