New Haven’s flagship refugee resettlement agency is closing its main doors at 235 Nicoll St. and shifting to remote work and satellite locations after losing millions of dollars in federal funding.