In the end , after months of fierce struggle , a compromise was brokered by Senator Bob Dole , Republican of Kansas , that required proof of discriminatory results , based on '' the totality of circumstances . ''