The U.S.-Israel war against Iran's impact on global energy costs weighed on support for Republican candidates and lowered U.S. President Donald Trump's approval ratings