Co-authoring a paper with a persona non grata
I expand on a comment by Buffy where this was hinted at:
It is a very different issue whether the misconduct was on the scientific level, which would cast doubt on the results, or on the social/moral level.
In the first case, it is difficult to trust the results if B is on the author list. Here, we have a serious dilemma. Probably OP might want to consider to cut their (and everybody's losses). Perhaps there is a way to publish it that makes it explicitly clear that this work has not been tainted by misconduct (editors note etc.).
To the second point:
Reiser's filesystem, Bieberbach's or Teichmüller's achievements are not devalued by their personal moral failings.
In this case, the research is done. It should be published. I do not know how important or impactful it is, but in principle, it's always a service to science and humanity, not just the respective taxpayer. Ultimately it's the OP's decision whether they are prepared to accept possible flak for their step. The research is separate from the authors behaviour. It's their detractors that would be trying to mix science and mores.
The only exception I can imagine for research to be suppressed for moral failures would be if the data were obtained in a clearly unethical way. The purpose of this is to discourage incentives for future breaking of ethical rules for obtaining it.