International Covenant on Civil and Political Rights
Article 18
....
4. The States Parties to the present Covenant undertake to have respect for the liberty of parents and, when applicable, legal guardians to ensure the religious and moral education of their children in conformity with their own convictions.
Article 19
1. Everyone shall have the right to hold opinions without interference.
2. Everyone shall have the right to freedom of expression; this right shall include freedom to seek, receive and impart information and ideas of all kinds, regardless of frontiers, either orally, in writing or in print, in the form of art, or through any other media of his choice.
3. The exercise of the rights provided for in paragraph 2 of this article carries with it special duties and responsibilities. It may therefore be subject to certain restrictions, but these shall only be such as are provided by law and are necessary:
(a) For respect of the rights or reputations of others;
(b) For the protection of national security or of public order (ordre public), or of public health or morals.
Article 20
1. Any propaganda for war shall be prohibited by law.
2. Any advocacy of national, racial or religious hatred that constitutes incitement to discrimination, hostility or violence shall be prohibited by law.
Article 23
1. The family is the natural and fundamental group unit of society and is entitled to protection by society and the State.
https://www.ohchr.org/sites/default/files/Documents/ProfessionalInterest/ccpr.pdf
Article 20, clause 2 is why the UK censors/punishes people.
The US is a state party to the Covenant too. What is being done in the UK could happen here.
Lindsey Graham, Nikki Haley could be punished under clause 1.
When the issue of this legislation came up a few decades ago it had not been approved by the US Senate and was "non self-executing". That is, it could not be brought up in a US court.
Has the situation changed?