Clinton: U.S. to work with new Islamist governments