The second impeachment trial of Donald Trump has come to an end with US senators voting to acquit the former president.