As long as there are people in Russia and China who are willing to work on such tech, it's actually ethical for Americans to work on the technology.
Effectively, it's the military power of the US and its allies that prevents people like Vladimir Putin from killing potentially millions of people in their neighbouring countries. Whatever faults US has, it's still infinitely better than Russia. I say this as a citizen of a country that shares a long border with Russia.