Molotov-Ribbentrop Pact "green lighted" the invasion of Poland and invasion of Baltic states.
It's all was described in secret addendum to that pact - two biggest socialist countries decided to split Eastern Europe and agreed on which countries to gobble.