The president called for impeaching judges and sanctioning lawyers and was rebuked by the chief justice of the Supreme Court.