The change comes after years of complaints from Republicans that Gmail’s spam algorithm unfairly blocked their committees’ emails.