Shanghai environmental-protection authorities said a battery factory operated by U.S.-based Johnson Controls Inc.