They are supposed to be complaint with whichever country they are operating in or simply get out of that country. Anything else is basically white people projecting their virtues on other countries.
And this is how IBM execs justified working with Nazi germany.
IBM was at no fault to work with Nazi Germany. What appears wrong in hindsight may not be that clear during those times.
Note: US government funded and fueled Taliban that eventually resulted in 9/11.