Quantifying long-term impact of court decisions