India is a crucial part of Apple's effort to lessen its reliance on China, where risks have grown along with Beijing’s tensions with the U.S.