The Clintons don’t do anything that doesn’t serve their agenda in one of three ways; a) political positioning, b) accruing power and c) accruing personal wealth. Not necessarily in that order.
Clintons have been known to do the right thing for the wrong reason, such as Bill's support for welfare reform helping him retain the working class vote in '96. When stuck with having to work with a liberal, getting them to do the right thing for the wrong reason is less bad than watching them do the wrong thing, which we did for eight years under Trump's predecessor.