The president’s move against Venezuela comes as high prices and economic unease continue to shape the midterm landscape.