Obama says U.S. ideals and security at stake in Syria