The stock market rose again on Tuesday in a broad move that pushed the Nasdaq Composite to a record close.