WARSAW — After the Soviet Union collapsed, Poland’s greatest dream was to join the European Union and NATO. Scarred by Nazism and then communism, Poles longed for a fresh start, and membership in NATO and the EU became a goal that transcended politics.