Prime minister of Thailand survives no-confidence vote