The Supreme Court also announced that it would begin removal proceedings for Judge John F. Russo, who asked a woman if she had closed her legs to try to prevent an alleged sexual assault.

“Because of the seriousness of the ethical violations here, it is appropriate for the Court to consider the full range of potential discipline, up to and including removal from office,” wrote Justice Stuart Rabner, the chief justice of the Supreme Court of New Jersey.

In the order, Justice Rabner cited a report from the Advisory Committee on Judicial Conduct that found Mr. Russo showed “an absolute disregard for the solemnity that must attend every court proceeding, particularly those involving such serious concerns as domestic violence.”

The removal process for a judge in New Jersey involves a formal hearing before a panel of Supreme Court judges. The order also suspends Judge Russo without pay pending the outcome of removal proceedings.

Lawyers for Mr. Russo did not immediately respond to requests for comment.

The controversy sparked by the two judges drew widespread condemnation from elected officials in New Jersey, many of whom called for the removal of both judges. On Wednesday, Gov. Philip D. Murphy released a statement praising the Supreme Court’s actions.

“Unfortunately, the inexcusable actions of several judges over recent months have threatened this reputation for thoughtful and reasoned opinion, and common decency,” Mr. Murphy said. “I am gratified that Judge Troiano will no longer sit on the bench and that removal proceedings will begin against Judge Russo.”

Judge Troiano, a longtime family court judge, made the comments in 2018 when deciding whether to try the accused teenager as an adult. Prosecutors had said the teenager sexually assaulted a visibly intoxicated 16-year-old girl at a party and recorded the act, sending the video to his friends, along with a text that said, “When your first time is rape.”