This is pretty much the exact same setup that US companies get in China. This seems like a pretty decent compromise actually. Free speech advocates win because people still get to use the service, but national security folks also get a win because they can monitor its use by a foreign government and shut things down if it’s being used maliciously.