US president lashes predecessor for 'threatening' American democracy, framing upcoming vote as a battle over 'the foundations of our republic'