US stocks have recovered from early ‌losses to close slightly higher, with the S&P 500 bouncing from a two-week low as a global bond sell-off reversed course after sending US Treasury yields to multi-decade highs.