The Supreme Court said the opposite, if you pull up the actual ruling. It actually laid the groundwork for continuing Trump's prosecution.
The main thing it said was that a president couldn't harass a former president without cause, which is to say Trump can't go after Biden for no reason.
So often people are following news outlets that get the story backwards. it sounds more salacious that way.