Supporters of Thailand’s former prime minister Thaksin Shinawatra greeted him as he was released early from prison.