An agreement at the Yalta Conference permitted the Soviet Union to annex almost all of their Molotov-Ribbentrop Pact portion of the Second Polish Republic , compensating the People 's Republic of Poland with the southern half of East Prussia and territories east of the Oder-Neisse line .
An agreement at the Yalta Conference let the Soviet Union add almost all of their part of the Second Polish Republic .