“A total assault on our rights," said one critic describing the bills.