TOKYO—Amid a welter of conflicting views over North Korea, there is one reliable standby. Japan’s prime minister has agreed with President Donald Trump, every time. Shinzo Abe is the type of leader to repeat talking points in measured words, while Mr. Trump is known for issuing aggressive statements unpredictably. On substance, however, they are in the same place, a reflection both of Japan’s depe