The case stems from an executive order ending automatic US citizenship for children born to parents living illegally or on temporary visas.