Donald Trump has scripted a historic comeback by defeating Kamala Harris in the US presidential election. Simultaneously, the Republicans have gained control of the US Senate. Here’s how America got here