The Treasury secretary said Washington would listen to Beijing’s concerns on national-security issues.