The groups representing the plaintiffs in a joint statement called the ruling disappointing and said they “will continue to fight against this abhorrent and blatantly illegal law”