The sale, which gave the Saudis partial control over one of Poland’s two oil refineries, “resulted in significant security risks”.