If this was done in private business or an American company buying off a foreign political office for a sale - it would be against the law.
You are right. The people who write the laws are above the law when the bribery is between themselves.