Part of Romania during the interwar period , Moldova was incorporated into the Soviet Union at the close of World War II .