For the future... sharing a nest between broodys and moms is not a good idea. Sometimes it might work out, but a broody on eggs has a high level of defensive hormones and stresses out easily. She probably thought the wriggling chicks were vermin after her eggs. At 3 weeks they're too big for trying to be under their own mom anyway, this is when she would naturally start insisting they give her room to breathe.
My own rule is just one broody at a time, any other volunteers get broken by moving them to the roost when it's too dark for her to jump down. A night of cool air under her is enough to break the urge (temperature and hormones are linked). If you catch it the first day it's easy.