The longtime state legislator accepted donations over the legal maximum from several donors, as did her opponent.