Companies from Samsung Electronics Co. to Apple Inc.’s assembly partners are showing interest in investing in India.