 In the contest proceedings, he won dismissal of an injunction prevent the opening of the ballot boxes; the subsequent recount reduced Weller's margin of victory, but Weller won the seat by 10 votes.As a Congressman, Ansorge was influential in the passing of the first-ever anti-lynching legislation.His writing of legislation on the matter was eventually included into the ultimately successful Dyer Anti-Lynching Bill, which prohibited lynching in America.