If the president’s policies dampen economic growth or fuel inflation, financial markets could react sharply — and history suggests that when investors push back, Trump takes notice.