Groups representing lawyers and judges have reached a deal on key points in proposed legislation that would reshape summary judgment practice in California for the first time in two decades.