(Updates with market moves at the end of the day.) US stocks ended mixed in what turned out to be