How the US went from being indifferent to fawning over India—because of China