A manufacturer of modular housing once touted by officials as a way to combat the affordable housing crisis canceled plans to build a Newport News factory, according to city and company officials.