Well, it could be that Sirius used some powerful and unknown magic or had help from other magical allies to overcome the blood problem and adopt Harry. Also, perhaps there was a misunderstanding or hidden truth about the supposed 'wrong' blood connection.
It's a complex situation. Maybe Sirius found a loophole or a hidden magical rule to make the adoption possible despite the blood connection issue.