Becky Walker Grossman, a Newton city councilor, filed the lawsuit with the Supreme Judicial Court 13 days before voting ends for a slate of Massachusetts primaries, including her own eight-way, open Democratic race for the seat currently held by Representative Joseph P. Kennedy III.