It was a perfect match, and Mr. Trump soon began honing the freewheeling, stream-of-consciousness style that would become his signature. For years, he used the platform to weigh in on everything from wind turbines (ugly) to President Barack Obama’s birth certificate (fake) to Jon Stewart’s comedy (overrated). Mr. Trump’s filter-free musings turned out to be engagement gold for Twitter, which recommended his tweets to millions of new users through its algorithms.Social media became an even more powerful asset for Mr. Trump when he turned to politics. And after he got elected president, thanks in large part …