BBC analysts assess the claims by both Washington and Tehran to have won a victory with the deal to end their war.