MUNICH—Defense Secretary Mark Esper told European allies in a speech Saturday the U.S. considers China a pre-eminent threat in its pursuit of an “advantage by any means and at any cost.”

His comments at the Munich Security Conference followed earlier remarks by Secretary of State Mike Pompeo that “the West is winning” against authoritarian regimes.

Mr....