India and the United States are on a cusp of an agreement that will reshape commerce between the two largest democracies in the world.