The state charges were the last remaining criminal case against the US president stemming from the 2020 election.