Europe has always managed to make the wrong choice historically, and that's how it still continues
The UK at times also blocked use of its air bases.
France probably cut a separate deal with Iran, evident from the release of the French hostages, the call Macron had with the Iranian FM and the fact Iran lets their ship cross
What source do you have for French ships being allowed to pass?