The Rohingya ruling by the International Court of Justice puts India’s commitment to international law and its fading tradition of sheltering persecuted people under scrutiny