Thomas Shepard Strong, Judge