A discarded law's ability stops being in effect.
That does not automatically undo already gained victory points; the victory-point rule handles those separately.
LRR v2.0 (base game / Prophecy of Kings); specific card abilities may override the general rule.