Nasdaq closes higher with technology stocks back in favor