The Middlesex County town is accused of discriminating against the religious group, according to a federal lawsuit.