But still a valid question.
Lincoln may have disagreed with his client, but argued for him in court, certainly.
But someone who is morally opposed to slavery would likely feel serious qualms about taking money to keep people enslaved.