Tesla miss, debt ceiling jitters dampen stocks’ upbeat mood