The following is my understanding. If I’m mistaken I hope somebody will correct me.
The insurgency in Iran was genuine. But Iran is already under sharia so Obama had no need or desire to change anything there.
In Syria the people rebelling are the die-hard Islamists who seek sharia. Hence, Obama’s support.