Prime minister survives no-confidence vote