Wall Street loses steam on last day of upbeat 2023