Civil rights advocates , some Republican lawmakers and many Democrats have criticized the law , saying it is being used to violate peoples ' constitutional rights .