I’m pretty sure Joseph had a justified excuse for his reasons for wanting to tend to the body of Jesus. If he was hiding his allegiance so well am reasonable confident he would have a good excuse and his wealthy status and standing in the council no doubt played a big part too.