Thailand has avoided having to repeat its general election after a top court ruled threw out a challenge claiming that ballot papers ⁠violated voter ‌secrecy,