The lessons from Trump’s first nine years in politics have delivered a president-elect ready to avoid the pitfalls of his first term.