Impeachment trial heads to historic end in frenetic week