Doing what is “right” on a wide range of issues has reinforced the momentum in U.S. efforts to counter Beijing.