Being attacked boosts domestic support for leadership, even unpopular ones. If Iran actually attacked the US some how, you can bet Trump's approval rating goes up.