Donald Trump’s election victory has been formally certified by democratic rival Kamala Harris.