The Massachusetts Senate on Wednesday sent Gov. Charlie Baker a bill that would ban the use of handheld cell phones while driving, despite concerns by many senators over provisions meant to address racial profiling.

Baker, who has voiced strong support for the general policy, has 10 days to sign, veto or return the bill with an amendment.

“This bill will save lives,” said Tom Brannelly, whose daughter Katie was killed at age 24 by a driver who had been texting. “A lot of parents are going to be a little bit lighter with the fact that their child can walk across the street…and there’s less worry of distracted driving now.”

Brannelly has been lobbying for the bill for years in memory of his daughter, who was close to graduating from Bridgewater State University when she was killed while crossing the street.

The House passed the bill 153-1 on Tuesday. The Senate voted 38-1 on Wednesday.

The sole no vote in the Senate was Sen. Rebecca Rausch, D-Needham, who said provisions regarding racial profiling do not go far enough.

The bill requires the police to record the age, race and gender of anyone who receives a written ticket or warning. The data would be confidential. It would be analyzed by an independent research institution, and annual reports would be made public.

Any police department found to have racially profiled would be required to have its members attend implicit bias training and to collect data on all traffic stops for a year, not only those resulting in written citations.

Rausch said she wanted the bill to require police to collect data on all traffic stops, not only those that result in tickets. She worried that the bill does not define racial or gender profiling and that it keeps the raw data secret, making it harder for watchdog groups to do their own analyses.

While she supports banning the use of handheld phones while driving, Rausch said, “I pledged not to put the burden of progress on the backs of black and brown people.”

Some lawmakers who voted for the bill voiced similar concerns.

Sen. Jo Comerford, D-Northampton, said she voted yes with a “deep and heavy heart.” Comerford said she thought of her 11-year-old biracial son, who has already been disproportionately disciplined and quieted because of racism. “I believe with all my heart we must get to a place in this commonwealth where we can track all stops by the police at all times so we can understand the magnitude of racial bias,” Comerford said.

Sen. Adam Hinds, D-Pittsfield, said he too voted with “deep reservations and deep concerns that it did not go far enough.” Hinds said his district aide, an African American man, has been pulled over nine times in two years, but has gotten just one citation. “None of those stops would be reported here,” Hinds said.

But overall, many lawmakers praised the bill as a huge step forward for public safety.

The bill would prohibit drivers from using an electronic device unless it is in hands-free mode. Drivers would be barred from looking at text, videos or images while driving, other than a navigation system on a console-mounted phone. An exception would be made for emergencies.

The fine would be $100 for a first offense, $250 for a second offense and $500 and a potential insurance surcharge for a third or subsequent offense.

Although the state banned texting while driving in 2010, that law has been largely unenforceable since it is hard for the police to know if a driver holding a phone is texting or making a phone call, reading an email or writing on Facebook.

“Technology has evolved, leaving the general laws woefully outdated,” said Senate Transportation Committee Chairman Joseph Boncore, D-Winthrop.

Boncore said statistically, one in 10 highway deaths are caused by distracted drivers.

Boncore addressed the racial profiling concerns by saying that the bill actually improves transparency around interactions with law enforcement. It will require annual reports, whereas today it has been 15 years since the state published any data about racial profiling in traffic stops. It also provides a way for those who do racially profile to be held accountable.

Sen. Cynthia Creem, D-Newton, who has introduced a similar bill for close to a decade said, “This bill will save lives and prevent tragedies.”

The law would take effect 90 days after it is signed. The police would only give warnings for a first offense until March 31.