China is ending most foreign adoptions of its children, leaving hundreds of American and other foreign families with pending applications in limbo.