U.S. stock markets ended Tuesday’s trading session on a mixed note, as gains in the technology sector propelled the Nasdaq Composite higher while.