Vinny Gambini flunked his bar exam five times before passing it, which is among the reasons he is admired by Joseph F. Anderson Jr., a federal judge in South Carolina.

“Despite the many setbacks he endures, Vinny’s devotion to his clients and the cause of justice never waivers,” the judge wrote. “The lesson here: Good lawyers are not quitters.”

It...