Then he should have discussed it with them privately. Proclaiming your personal dislike for your new XO when you introduce her (as XO) to the senior staff is just not an appropriate way to command, even if she really is a pain in the rear.^
Guess Riker was making it known that he had no choice but to choose Shelby. Wanted the others to know that if it weren't for the exigency of the situation, he'd not have chosen Shelby.
When Kirk had a problem with Decker, he spoke to Decker privately. He didn’t belittle Decker in front of his fellow officers.