Indian officials discussed China’s rare earth restrictions during talks with that country’s vice foreign minister this week, people familiar with the matter said, as automakers continue to warn of a looming shortage that may disrupt output in the South Asian nation.