Sabita Soneji had tried several times to get leadership roles in multidistrict litigation, but it wasn’t until last December that she landed a position on the plaintiffs’ steering committee overseeing cases against electronic cigarette maker Juul Labs.

The difference? A federal judge focused on diversity, she said.