Complex sentence: From 1920 to 1940, relations between the countries had existed, too (but in 1922 USSR had been founded, which took over the foreign affairs of its member states, including Russia).
Split into simpler sentences: From 1920 to 1940, relations between the countries had existed. In 1922 USSR had been founded, which took over the foreign affairs of its member states (including Russia).