Federal Reserve officials were almost ready to raise interest rates in September but held off because of China’s economic slowdown and its potential to derail U.S. growth and inflation.