It's also worth noting that the EU disproportionately benefits from oil purchases from Iran relative to US so they have their own political self-interests factoring into their decision.
Oil is fungible. The EU only benefits disproportionately because the US refuses to do business with Iran.