The state’s experience is instructive as President-elect Donald Trump prepares to overhaul the U.S. immigration system.