SEOUL—South Korea implemented a deal with Japan to compensate women used as military prostitutes, fresh evidence of a thaw between two feuding U.S. allies that Washington has pressed to work together to counter North Korea’s nuclear threat and an assertive China.