U.S. inflation worsened last month to 3.7% in sign that prices remain elevated as midterm elections near