The Supreme Court heard arguments in a case that could strike down bans on so-called conversion therapy for children.