Elections were closely watched in New Jersey, Virginia, and New York City.