The election  the nation’s first congressional contest since President Donald Trump’s inauguration  was once viewed as an early test of the Democratic Party’s base ahead of congressional elections in 2018.