Samuel T. Cogley, Attorney