Investors cheered Donald Trump’s election victory in November, but his tariffs have cooled that enthusiasm in recent weeks.