The first amendment is a negative right: it forbids the government from acting. "Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech..." The Supreme Court has historically ruled on a regular basis that most US Constitutional protections extend to non citizens too. Unfortunately the conservatively biased Supreme Court last month decided that interfering with freedom of speech is OK against a foreign company. A loss for freedom and a victory for authoritarianism.
Furthermore, historically our country merely postures about rights. They go out the window when politicians start using words like “national security.”