The US constitution's First Amendment rights only cover Americans, but I believe that in a democracy the competition of ideas and free speech should combat beliefs that it does not agree with - more speech and debate, not censorship.
Liberty, freedom and democracy are very fuzzy words, but human rights is very specific.
Upholding human rights is not merely compatible with fighting terrorism, it is essential.
It would be easy to define terrorism as attacks against human rights and international humanitarian law forbids attacks against innocent non-combatants which is often the definition used for terrorism.
If we destroy human rights and rule of law in response to terrorism, they have won.