The case will test a key pillar of the Trump administration’s hard-line immigration agenda.