Supreme Court permits ending immigrant protections