TOKYO — Alarmed by increasing security threats and the risk of war in the Indo-Pacific, Japan will seek to purchase hundreds of U.S.-built Tomahawk cruise missiles as part of a major defense buildup unprecedented in the postwar period, Japanese and U.S. officials said.