President Donald Trump gave the social media platform more time to comply with a law that requires it to divest its Chinese ownership.