Stocks rise after US deal with Mexico