Stocks added to gains that pushed four major equity benchmarks to simultaneous records for the first time since 1999.