S&P 500 nears all-time high as oil prices ease, yields retreat