Despite polls showing Hillary Clinton with a slight lead, Donald J. Trump won the state of North Carolina in Tuesday's presidential election.