The toxicity of American politics is spilling into foreign affairs, with domestic fights about abortion and other social issues stalling the hiring of hundreds of diplomatic and military positions. As the U.S. prepares for a long-term showdown with China, some allies look to Washington with trepidation.