The speech is legal, it just might break a contract between two parities in the US. It's a far cry from a discussion around what kind of speech is acceptable in a public square.
Twitter is using a privileged position to protect it's own IP. It's fine for a company to do, but just doesn't really sit with "we're just running a public square for the good of the world"