The Republican candidate has been projected to win the keys to the White House for his second term after securing gains in three key swing states, including Pennsylvania.