The summit ended with Trump’s extraordinary support for Putin, who has been accused of attacking American democracy