Labor backs bill forcing charities to reveal donors in deal with government for dropping voter ID laws