ANNAPOLIS, Md. – Maryland lawmakers approved a measure abolishing the death penalty Friday and sent the bill to Gov. Martin O’Malley, who has long supported banning capital punishment.

The House of Delegates voted 82-56 for legislation already approved by the Senate. Eighty Democrats and two Republicans voted for the bill, which needed 71 votes to pass. Eighteen Democrats joined 38 Republicans to vote against it.

The vote represented a major victory for the Democratic governor, who has pushed for five years for the death penalty’s repeal. He is widely believed to be weighing a presidential bid in 2016.

“We have a moral responsibility to stop doing the things that are wasteful and do not work and, that I would argue, run contrary to the deeper principles that unite us as Marylanders,” O’Malley said, flanked by a group of death penalty opponents, including NAACP President Benjamin Jealous.

Under the bill, life without the possibility of parole would be the most severe sentence in the state. Supporters of repeal argued the death penalty is costly, racially biased, a poor deterrent of crime and sometimes wrongfully applied. The possibility of executing the innocent prompted many lawmakers to support the measure.

“I can live with putting to death criminals who committed what are truly grievous and wicked acts against our children, our police, our mothers and our daughters,” Delegate Luiz Simmons, D-Montgomery, said on the House floor, “but what I am opposed to, and what I can no longer live with, is using the death penalty to accidentally put to death an innocent man or woman.”

Opponents insisted capital punishment was a necessary tool in punishing those who commit the most egregious crimes.