There wasn't a WTO and there weren't international trades laws, in the 1800s. Even then he wasn't working as an arm of the US government to deliberately steal IP to surpass the British empire technologically, which is what the Chinese are currently doing