Yes Hitler and Stalin made a secret pre-war pact how they would divide Europe. That doesn’t change the fact that they were allied with America and England during the fighting. Russia is a more natural ally to the USA(minus communism) than Germany, because of geography, and the Germans always have a tendency to start wars
I’m pretty sure this violates the law