Trump leaves social media company during a federal investigation