Yeah, Hillary and Obama both got nabbed for campaign finance violations. Hillary for hiring a foreign national to influence the election, and then hiding the payments. She got a slap on the wrist.
Obama for failure to report large foreign donations. The donations were to influence the election, and Obama did not report them, because to do so would have negatively influences the election. He got a slap on the wrist.
What I think is hilarious, is that had Trump classified the payment as a campaign expense, that would be a campaign finance violation, and he would still be in court.