Republicans slightly outspent Democrats for the first time as Democrats swept national and state elections.