Trump’s meeting with Japan’s prime minister ended with a tariff warning, but praise from the Japanese side eased tensions.