The president's signature accomplishment is undermining faith in elections