Their winning margin has been much-reduced, after a contest that was seen as a test of Donald Trump's popularity.