Affected by Trump's remarks, Tesla's stock rose 6% in after-hours trading.