The lawsuit follows months of fierce opposition from residents.