US stocks buck early negativity to finish mostly higher