2 Test message Cc jennifer garner and halle barry told the lawmakers horror stories about issues with the kids and photographers. We are in los angeles, the efforts are getting somewhere. . Reporter:... See More
2 Test message Cc jennifer garner and halle barry told the lawmakers horror stories about issues with the kids and photographers. We are in los angeles, the efforts are getting somewhere. . Reporter: Yes, the vefrts paid off so far, because the vote on the bill was unanimous, and comes just weeks after lawmakers heard some heart-tugging testimony from two hollywood moms. This is what some hollywood celebrities face every time they step out of their homes. And when they're with their kids, the shutters don't stop. Just watch britany spears and her sons surrounded in the 2012 documentary celebrity that took viewers behind the velvet ropes in the world of celebrity photographer. This morning, celebrities are one step closer to winning the fight to protect their children from harassment by paparazzi in california. Weeks ago, california lawmakers heard emotional testimony from famous moms like halle barry and jennifer garner, about how their children's lives are affected by photographers. And I don't want a gang of shout, arguing, law-breaking photographers who camp out everywhere we are, all day every day, to continue traumatizing my kids. Reporter: The bill which just passed the state senate, allows them to take pictures of the children, but would make a paparazzi who annoys, torments or terrorizes a child subject to fines or jail time. Other haves fought back, ang lee ya joe lee and brad pitt sold the rights to their children, in all, bringing in $18 million and donating it to charity. Some say ultimately legal action won't stop the profitable pictures from ending up in magazines, but it could change how they're taken. Hopefully this will be some level of deterrent and send a message that it's just not okay. Reporter: The bill goes to the governor this week, they would face a year in jail and tens of thousands of dollars in fines. Dan and bianna. Thank you.
This transcript has been automatically generated and may not be 100% accurate.