If Narendra Modi deliberately set out to destroy global goodwill for his government among trade negotiators and free-trade supporters, he could scarcely have been more effective.