Factory Output Cools After Biggest Gain Since February