The major averages climbed on Tuesday.