The bill was inspired by a CalMatters investigation.