S&P 500 posts highest close since November 8 on trade optimism