But by the morning of November 6th Donald Trump had won the White House and his party had secured a majority in the Senate.