US stocks close lower before debt ceiling vote; Nasdaq gains 6% in May