In embassies around the world, some of America’s diplomats are being dressed down by their host nations. Others are considering leaving their posts.