New law on charities passed despite objections