US pledges to help Japan, South Korea end trade spat