Different Russian engines. The engines that ULA is banned from buying are RD-180s; they are being newly built to, effectively, American specifications, though most components are derived from the RD-170 which was originally built for Energiya.
You're describing this history of the NK-33 engines, which were originally built for the Soviet lunar program, and then (as you say) hidden in a warehouse after that program was terminated. Some of those were later bought by Aerojet, which then sold them to Orbital for use in their ISS cargo delivery program; neither company is party to the suit, and the injunction doesn't cover them. (Nor could it; Aerojet's stock of NK-33s was bought and paid for quite some time ago now.)
You're describing this history of the NK-33 engines, which were originally built for the Soviet lunar program, and then (as you say) hidden in a warehouse after that program was terminated. Some of those were later bought by Aerojet, which then sold them to Orbital for use in their ISS cargo delivery program; neither company is party to the suit, and the injunction doesn't cover them. (Nor could it; Aerojet's stock of NK-33s was bought and paid for quite some time ago now.)