How does he come out of this looking like a good leader who should be elected to a second term?
Fox News. Everything else is a left-wing, deep-state conspiracy to unseat and antagonize the best President ever. Seriously, the propaganda machine has been in full swing for many years, especially through the Obama Presidency.
...as long as they can keep Trump in office, and pushing through more right-wing policies.
Specifically, conservative federal judges. Starting in 2015, when Sen. Mitch McConnell took over the post of Senate Majority Leader (not a thing that's in the Constitution, by the way), he stopped confirming Obama appointees to the federal bench. At the close of Pres. Obama's last term, there were something like 200 open positions. So now that the Republicans control the White House and the Senate, they've been racing to fill those seats. This includes three seats on the Supreme Court. The House of Representatives has nothing to do with the selection of judges. So busy has Sen. McConnell been in ramming through those judicial nominees, the Senate has done practically no actual legislation.
Skewing the judiciary to the right has long been the goal of the Republicans. The political branches of government come and go, vacillating between the parties. The judiciary is longstanding. And while it is supposed to be apolitical, that really hasn't been the case recently. Increasingly the political branches of government have turned to the judiciary to resolve disputes or to alternately effect and bar policy. If the judiciary leans right, the Republicans will win more of those fights.
As I recall, he bragged that he could shoot someone on Times Square and not lose votes and I'm afraid that has, in a way, come true.
In a more literal way than many thought. The Senate has sent a clear message to the White House that the President will not be held accountable for breaking any laws -- which he has then done in abundance.