US stocks end mixed midweek as end to government shutdown in sight