Didn’t they ban the books using democratically elected representatives that legally passed a valid law?
If anything we actually have the 1st amendment to stop democracies from going too far!