What you fail to understand is, that the US needs India way more, than India needs the US in terms of defense, or stratigic relationships.
India don't need US military, nor its arms and techs to defend itself. India already has a strong partner with the Russians and besides that more than capable options from the west to procure high tech wepons, like Israel, or the European nations.
The US instead needs Indian military power and the strategic location of India, to have a counter weight against China. Be in in form of IAs man power, INs fleet in the Indian Ocean, or IAF to pose a threat to Chinas western borders, they all are strategicaly important to deter China!
Of course the US forces are the most powerful in the world, but neither they can fight China in the east (with South Korea, Japan, or Taiwan) and at the same time in the west, to keep them away from the Arab countries and oil supply. India is the only natural blockade for them and the US simply can't afford to lose this strategic advantage!
That's why the US is offering us now nearly everthing you have, even things we don't need, or never asked for. You want to get us as an ally and besides that, use this huge market to make money. So if you think, the US are doing India a favour, you are mistaken!
It is simply in your interest to have a closer relationship to India, that's why you came to us, although you supported Pakistan for decades. But China is rising rapidly and neither your old allies in Europe, nor those in east Asia are powerful enough to stand up and pose a threat to China.