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.
It’s not a bribe, silly. It’s selling legislation.