Seems to me, that the US only gets involved in the middle east for the same reason you are saying Putin is......
Look, I trust Putin as far as I can throw the entire nation of Russia, but if they fight ISIS/ISIL for us, I am good with that. It's not like we are winning a lot of friends in most of those countries anyway (no matter who the president is). If Russia wants to spend its resources, and make radicals mad at them, I am ok with that.