EU countries, lawmakers agree deal on class action lawsuits