Indian court rejects appeal of man set to hang for terror attack