How New Delhi navigated competing interests among Washington, Moscow and Beijing while keeping India’s strategic autonomy intact.