Though pranksters were easily scolded by their elders, they were also the ones who understood those elders best.
Shunsui was just such a prankster. That was why he had stopped Ukitake from going to Kaien's aid on Sokyoku Hill. If they had stayed there, Old Man Yama would never have shown them mercy.
When had it begun? Perhaps it was when Aizen was murdered, or perhaps earlier, with Gin Ichimaru's strange behavior when he had seemingly fought the Ryoka but had actually let them escape. Or perhaps it was even earlier, when Rukia Kuchiki was brought back to the Seireitei. Yamamoto had probably noticed that something unusual was happening within the Seireitei by then.
Only Yamamoto himself knew exactly when, but Shunsui was certain of one thing: Old Man Yama, the Head Captain, might have been stubborn, but he was certainly no fool.
There was indeed something wrong with subjecting Rukia to the Extreme Punishment, but she had broken the Seireitei's laws in the first place. If blame were to be assigned, the most that could be said was that Central 46's punishment had been somewhat excessive.
Thus, Yamamoto would neither plead for Rukia nor use her case as grounds to hold Central 46 accountable. Put bluntly, Rukia simply wasn't important enough.
But after Yoruichi and the others invaded the Seireitei, the situation changed. Shunsui could see that their actions were a gesture of goodwill toward them, and there was no way Yamamoto couldn't see it too.
That was probably why he hadn't ordered them killed. Whether Yoruichi was fighting some unknown force within the Seireitei, or whether it was all a deception and Urahara was driving a wedge into the Gotei 13, it made no difference to Yamamoto.
To Yamamoto, the point where it all converged was clearly Rukia