Obama warns of autocracy