The abrupt end of plans to build an immigrant detention center in Merrimack, New Hampshire, is reshaping the race for governor.