A historic influx of migrants has changed the size, makeup and outlook of the U.S. labor market and the economy.