The high court’s 6-3 opinion along ideological lines found the law criminalizes bribes given before an official act, not rewards handed out after.
Eg: it’s ok to give Supreme Court Justices money after they rule in your favor because it’s normal and ok to regularly hand them amounts much larger than their salary. The Democrats on the court were the dissenters.
Now if you want to bribe a judge, all you have to do is call it a tip.