Prosecutors say Trump assaulted the ‘bedrock function of democracy’ to cling on to power