In this Dec. 19, 2013 photo, a motorist talks on a cell phone while driving on an expressway.
In this Dec. 19, 2013 photo, a motorist talks on a cell phone while driving on an expressway. Credit: Nam Y. Huh

BOSTON — Nine years after the state implemented a difficult-to-enforce ban on texting while driving, five months after legislative negotiators began the latest attempt to take phones out of drivers’ hands, and 3½ months after their original agreement collapsed, the House voted 153-1 Tuesday for a compromise bill that could reach the governor’s desk as soon as this week.

The legislation bans using handheld electronic devices while driving, with lawmakers predicting lives will be saved and remembering people killed by distracted drivers.

The legislation, filed with support from all six members of a conference committee tasked with resolving differences between the original House and Senate versions, would forbid the use of all handheld electronic devices behind the wheel, except for those in hands-free mode. Drivers could view electronic maps on a device mounted to the windshield, dashboard or center console, but they could not use their hands to interact with any electronic beyond a single touch or tap to active hands-free mode.

Motorists who violate the new regulation would face fines between $100 and $500, and third and subsequent offenses would be surchargeable for insurance purposes.

The committee’s negotiated bill also updates existing data collection requirements, calling for state agencies to track the age, gender and race of every motorist issued a citation or warning and to publish an anonymized summary of the data every year as a way to monitor for profiling by law enforcement.

The bill, which mirrors laws already in place in many other states, took years to come together. Rep. Joseph Wagner noted he first filed a bill addressing the topic in 2003.

“This bill will save lives. Not everything we do can have that said about it,” Wagner said.

“We took on a lot,” Rep. William Straus said, noting the bill  deals with both hands-free use of devices and racial profiling of drivers by law enforcement. “When you do that, you do risk that it will take more time.”

“It’s really a bill that’s going to improve public safety on our roads and hopefully end the act of distracted driving,” Sen. Joseph Boncore, the conference committee’s Senate co-chair, said after the report was filed Monday. “It really improves transparency in our public safety processes and the analysis we can now do on individual law enforcement agencies.”

The Senate is tentatively planning to take a similar vote Wednesday. If it passes in both branches as expected, the bill will reach Gov. Charlie Baker this week, who included similar handheld ban language in his own driving safety bill this year.

Once signed, the law would take effect 90 days later, though motorists would only receive warnings for violating any of the new provisions until March 31, 2020.

“We are so relieved to finally be at this point — to see the final language for a hands-free bill. We have waited many years for this,” said Emily Stein, president of the Safe Roads Alliance, in a statement. “This law will save lives, and it will help to educate drivers about the serious consequences of phone use while driving. We have lost too many lives, too many disabling, serious injuries that were caused by a distracted driver. This is a big step towards preventing more of these senseless, preventable crashes.”

House Speaker Robert DeLeo said in a statement that the conference agreement “will make the roads of Massachusetts safer by strengthening our distracted driving laws and keeping phones and devices out of the hands of those operating vehicles.”

Lawmakers for years have been unable to agree on legislation to crack down on distracted driving, even as the rapid spread of smartphones exacerbated the problem. The House approved legislation several times in the late 2000s — before the existing law went into place — requiring hands-free phone use, but the Senate was not on board.

Rep. Joseph Wager, one of the conference committee members, warned in 2009 that banning only electronic messages while driving would be unenforceable, but one year later, the current ban on texting and emailing behind the wheel went into effect.

More recently, roles were reversed and the Senate approved its own version of a handheld device ban each of the two previous two-year sessions, but over that span, the House never took a final vote on a bill.

At least 20 other states already have hands-free device use requirements on the books, according to the National Conference of State Legislatures.

“While I am thankful that we have reached a final agreement, it is very hard to celebrate knowing this should have been dealt with years ago,” said Sen. Mark Montigny, who has been pushing for a similar bill for more than a decade and has ramped up criticism of his colleagues this fall as negotiations stretched on.

“Distracted driving has claimed the lives of far too many innocent people and wreaked havoc upon families, forever robbed of planning graduations, weddings, and holidays.”

Finding consensus between the branches, particularly as it related to data collection, ensnared the conference committee for months and split onlookers. Some called for separating the debate and passing a simple handheld phone ban as soon as possible.

Under the compromise bill passed Tuesday by the House, any police department found by the administration to have engaged in racial or gender profiling would be required to implement bias training and to track demographic data at all traffic stops, not just those ending in citations, for one year. The bill also includes language requiring the administration to study the feasibility of collecting data from every traffic stop, not only those ending in citations, and submit a report by April 1.

All six members of the conference committee — Boncore, Sen. William Browsberger, Sen. Dean Tran, Wagner, Straus and Rep. Timothy Whelan — signed the conference committee jacket indicating their support for the compromise.