The level of influence his purchase had on the actual outcome of the election is debatable. I'm skeptical it mattered much at all. Twitter is just less important than people think. Trump, at worst, had about a 50/50 shot to win in any case.
Elon spent a couple hundred million on get-out-the-vote operations in swing states, which made him the single biggest donor supporting Trump by far and I think that's what really ingratiated him enough with Trump to head up DOGE, and for < 1% the price of Twitter.
And FWIW, Elon has tried to influence other races with his megaphone and money (like a WI supreme court race) and totally failed.