The majority of Supreme Court justices appeared inclined to uphold a federal law that would ban the company unless China-based parent ByteDance divests from it.