A federal appeals court on Monday ruled that lawyers have a First Amendment right to run ads quoting judges praising their work.

Reversing a lower-court, the Third U.S. Circuit Court of Appeals ruled in favor of a New Jersey litigator who claimed a state attorney-advertising rule infringed on his constitutional rights.

Andrew Dwyer, a workplace...