Iran is clearly convinced that there is nothing it can do to prevent a US attack. Therefore it is trying to maximize it's support in the Islamic world. Standing up to colonialist powers like Blair's England and Bushiz America is one certain way to gain admiration and sympathy.
Suspected Boko Haram suicide bombing kills 38, wounds 51 in Chad village (Reuters)
from the article: Iran challenges Bush