This was the first election since Trump took office in January that provided an opportunity to gauge voters' current political mood.