Following a 2-hour plus debate that was at times passionate and fiery, the state Senate on Friday approved a measure that would create a medical marijuana program.

The bill passed 49-10, and now goes to Gov. Andrew Cuomo’s desk, who plans to sign the measure.

The measure, which was approved in the early hours of Friday morning by the Democratic-led Assembly.

The bill gained support in the Senate from both Democrats and Republicans, including the Senate GOP Leader Dean Skelos, who voted in favor of it in part after a provision for smoking was removed.

Summing up the tone of the debate, Skelos said, “I can honestly say for the first time in the Senate that every person that has spoken has been correct on both sides.”

Key to the issue advancing in the Senate was 86-year-old Sen. Bill Larkin, a retired Army colonel who approved an earlier version of the bill, then known as the Compassionate Care Act, in the Senate Health Committee.

“There’s an old saying in the Army — lead or get the hell out of the way,” Larkin said on the Senate floor, promptly apologizing “to the ladies in the room.”

Not all Republicans were convinced, however.

Sen. Tom Libous, a Binghamton lawmaker who is receiving treatments for cancer, said he feared the “false hope” medical marijuana would bring to patients with serious illnesses.

“I do understand that people need hope and I do understand this may give people hope,” he said. “This isn’t going to cure anybody.”

Other lawmakers were skeptical about the regulatory safeguards put in place for the program and the effectiveness of doctor training.

The medical marijuana program would be suspended by the governor at any time based on recommendations by the State Police and health officials.

Senate Health Committee Chairman Kemp Hannon was especially derisive that the bill still allowed for ingesting marijuana for vaporization.

“It’s been commented that there’s a big change in the bill that there isn’t smoking,” he said. “Give me a break.”

Manhattan Democratic Sen. Liz Krueger noted that doctors already prescribe medication that is potentially dangerous and habit forming.

“No one has overdosed on medical marijuana,” she said, “or non-medical marijuana for that matter.”

Some doctors, she said, already “secretly whisper” to patients about trying medical pot in order to alleviate pain.

Support for the measure was shepherded by Sen. Diane Savino, a member of the Independent Democratic Conference, who negotiated the bill with Cuomo and, in the end, made concessions such as removing the smoking component in the legislation as well as allowing for more power to be vested in the Health Committee.

“To the patients, to the families, to the mothers, we would not be here if it weren’t for you,” Savino said in a floor speech addressing supporters of the bill sitting in the Senate gallery. “And it was not easy for you to be here. You are the reason we are here today, this is what this bill is all about.”