Putin made a series of demands that he knows would be non-starters to any rational western leader in the hope/expectation that Trump would give him whatever he wants. And he flattered the stupid fat bastard constantly.
And so Trump thinks it went great.