Being in JNU means P R Kumaraswamy is some wooly eyed leftist to conclude "There is nothing wrong if the Indian government concluded that friendship with Iran is more important than the nuclear deal or closer ties with the US.". This is a failty analysis.
Even if this is true from US perspective, then why not view it as a test case of US credential. If they value genuine friendship and accept Indian non-alignment policy only then it makes sense to have deeper trust relationship, including military ones.