The ruling eases one of the threats to Thaksin's embattled dynasty, which has dominated the nation's politics for two decades.