Washington has urged the governments in Tokyo and Seoul to increase cooperation. But the pact triggered an uproar in South Korea, where resentment of Japan’s early 20th-century colonization remains raw and the public regards any sign of Japan’s growing military role with deep suspicion.