Democrats have flipped an Iowa state Senate seat in a district that overwhelmingly voted for President Trump in November.