The punishment is on the excommunicant. By receiving the body and blood while in a state of mortal sin, they have committed a sacrilege.
You are probably right, I am no scholar on such things ,but IMO (which isn’t worth crap I suppose) if a Priest or Bishop , or even a Cardinal gives the Sacraments to those he knows personally does not have the right to receive, that clergy is as guilty as the Communicant.
Of course like Obama they probably have some sort of immunity.