Stocks give cautious welcome to U.S. aid deal, wary on Brexit