Stocks rose on Tuesday amid news that U.S. lawmakers had secured a tentative deal on border security funding. Improved prospects for a U.S.-China trade deal also boosted equities.

The Dow Jones Industrial Average rose 372.65 points to close at 25,425.76, led by Caterpillar and 3M. The climbed 1.3 percent to 2,744.73 as materials, consumer discretionary and financials outperformed. The S&P 500 also closed above its 200-day moving average — a closely watched level by traders — for the first time since Dec. 3. The Nasdaq Composite advanced 1.46 percent to 7,414.62.