Home Investing US midday market brief: stocks inch higher as S&P 500 recovers from morning losses