Groups dedicated to helping the poor and disenfranchised have found themselves—sometimes to their spokesmen’s surprise—participating in a front group for drug companies dedicated to blocking cheaper prescriptions.