Beshear, a Democrat, won a second term in a part of the country that just three years ago was handily won by former President Donald Trump.