The Dow Jones Industrial Average and S&P 500 hit intraday records on Tuesday as the Senate passed a $1 trillion infrastructure bill and treasury yields rose.