Thaksin Shinawatra had struck a grand bargain with Thailand’s establishment, analysts say, that allowed his daughter to ascend to the prime minister’s job.