Justices debate rights of lawful everlasting residents in opposition to backdrop of Trump’s immigration crackdown