The next Supreme Court justice isn’t a member of Mr. Trump’s Cabinet, but Democrats could strike a similar posture for that pick depending on how the nominee views the immigration order, among other issues.