If diplomacy fails, be prepared for anti-Syria action: Obama