SAN FRANCISCO — It’s the kind of case, and career opportunity, that plenty of associates can only dream of. And it fell right in Rita Lin’s lap.

The eighth-year associate at Morrison & Foerster is representing, pro bono, a federal court employee in what has become a key front in the legal assault on the federal Defense of Marriage Act.