In a year of globe-trotting, the Indian prime minister has secured deals around the world as the United States becomes less dependable.