President Trump’s social media chief violated federal law earlier this year by calling for the rejection of a Republican congressman, a U.S. agency says.