Charity legislation becomes law