Trump’s move threatens the country’s economy and Modi’s dominance of domestic politics — and could lead to realignment