Who was said to have gained the right to rule Tibet?