The ceasefire deal with Iran might come at the right moment for Donald Trump, as it could stop the erosion of domestic support for the President.