Immigrants from Ukraine and Nicaragua, who keep factory in North Carolina humming, are among 1.8 million workers with temporary legal protections