If Putin wants Assad secure (for now) he has to help with getting his Iranian buddies out of Syria. Israel and USA both demand it.
I assume Trump got Putin to agree with USA on threatening Iran.