I think more pertinent is that whosoever wins in US, there seems to be fast approaching a time where, either of the candidates, who have publicly decried the role of Pakistan in fomenting trouble and maintain terror infrastructure even to detriment of American lives and interests, will have to start taking a more resolute action against this rogue nation once elected as President. The important point is that now even publicly the Americans have started signaling out Pakistan as being a problem (which we Indians have always told was the case) and not being part of the solution. The election statements by both have been too open and straightforward to allow them to backtrack easily.
The Iran deal allows the US to have Iran along with it indirectly as increasingly the role of Pakistan is coming under scrutiny and also publicly the pressure will mount on the next US president to do something about it, what with so many American lives lost in Afghanistan and the country still de-stabilized and mounting violence with resurgent Taliban pointing to direct funding/support by Pakistan. Iran has the interest in a destabilized Pakistan as the nuclear arsenal which exists in Pakistan is allowing the Saudi 'adventurism' which collide with Iranian interests. For US, the added benefit of an unstable Pakistan will be the effects on CPEC and application of pressure on Chinaon another front. The benefits and drawbacks for India have been flogged to death so wont get into that.
Intriguing times ahead. The only question is: will the next US president take action to defang Pakistan and destabilize it on lines of Syria?
The incentives are tremendous for US to do that ......