This was not a Canon Law matter. This was the bishop being a sore loser on gay marriage by being rude to gay spouses and threatening to the priests who would minister to them.  We saw the same kind of retaliatory nonsense when the Affordable Care Act passed and certain Bishops took retaliatory actions against sisters in Catholic Health who cleared the bill as not promoting abortion, which was correct, by the way.