The president has said he has agreed to a deal to allow the social media platform to continue operating in the United States.