Thailand votes in favour of military-backed constitution