India's top court has ordered state authorities to stop threats, assaults and social boycotts of thousands of Kashmiri students, traders and professionals in an apparent retaliation for the killing of 40 paramilitary soldiers in a suicide attack in the Indian portion of Kashmir last week.