The chief justice’s rare public rebuke was needed after the president’s outrageous call for the impeachment of judges.