@Nerde No that is absolutely not what happened, despite so much misinformation that went around social media.
The courts absolutely did not rule that the laws don't apply to the president. The courts say the exact opposite of that.
The more you promote that sort of misinformation, well that actually does undermine holding presidents to account.
But it's a lie. Whoever told you that is either wrong or actively lying to you, either way you should stop listening to them.