You are asked for a bribe to get your goods to market in a country. That's illegal for a US company. You hire a local company to expedite the process using their customs experience at 2x the bribe -- poof legal.
No, under US law you are still responsible for bribery committed by your proxy, and have to have a process in place to ensure that all proxies follow anti bribery laws.