The race won by Democrat Mikie Sherfill was the most expensive in the history of New Jersey and was widely seen as a gauge of the Trump administration.