SACRAMENTO (CBS / AP) – California lawmakers have approved a Planned Parenthood-backed bill that would make it illegal to distribute secretly recorded conversations with a health care professional.

The legislation approved Wednesday responded to last year’s release of secretly recorded videos of Planned Parenthood officials allegedly discussing the illegal sale of fetal tissue. The organization said the videos were deceptively edited.

READ MORE: Former Presidential Candidate Andrew Yang Touts Basic Income at Mountain View Rally

The bill created tough choices for some liberals who wanted to protect Planned Parenthood but worried about restricting free speech rights. The bill’s author, Democratic Assemblyman Jimmy Gomez of Los Angeles, agreed to changes designed to protect journalists.

READ MORE: National Park Service Proposes Parking Fees at Popular Bay Area Beaches

Republican Sen. Joel Anderson of Alpine says it protects an industry that destroys life. He voted against it.

With a 44-20 vote in the Assembly, AB1671 goes to Gov. Jerry Brown.

MORE NEWS: CVS Stores Roll Out Pfizer Booster Shots Across Bay Area

© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.