Stocks keep some gains as an appeals court pauses a ruling that blocked Trump's tariffs