ALBANY – New York lawmakers are poised to vote into law a measure that would provide driver’s licenses to the state’s undocumented immigrants following days of tense negotiations, and despite warnings from Gov. Andrew Cuomo.

“We will be passing legislation restoring the right for all qualified drivers to obtain driver’s licenses regardless of immigration status,” said the state Senate’s top Democrat, Majority Leader Andrea Stewart-Cousins.

“By passing this needed legislation, we are growing our economy while at the same time making our roads safer,” the Westchester lawmaker added.

Stewart-Cousins’ announcement came after days of intense negotiations that were largely wrapped up over the weekend, despite continued opposition from several Long Island Democrats representing potentially competitive districts.

One of those lawmakers, state Sen. Jim Gaughran (D-Suffolk), told reporters Monday he “has to read the bill” before deciding how he casts his vote.

Additionally, at least three other Long Island state senators, Kevin Thomas, John Brooks and Monica Martinez, have previously expressed concerns.

Thomas said Monday he remains opposed, while Martinez ran from staked-out reporters at the Capitol.

Another Long Island lawmaker, state Sen. Todd Kaminsky, also tried to duck past reporters and failed. He refused to say which way he was leaning in the run-up to the vote.

Of the six Democratic state senators from Long Island, only one, Sen. Anna Kaplan, has publicly spoken in favor of the measure, which the Assembly already passed.

It if passes, the bill’s next stop would be Cuomo’s desk for his signature.

But supporters ran into a new complication Monday when Cuomo said in a radio interview that he asked the state’s top civil attorney, Solicitor General Barbara Underwood, to review the law – potentially throwing water on the measure he purportedly backs.

“You could create a database for the feds to use to actually track down undocumented people. This is a legal question more than anything else,” Cuomo said on WAMC radio. “California passed a law and they are now in litigation.”

He added: “I’m asking the solicitor general to review the law and assure us that the federal government will not be able to access the information or subpoena the information.”

Cuomo went further when speaking to reporters at an unrelated event in Manhattan later Monday morning, threatening to veto the bill unless it gets Underwood’s approval.

“If the solicitor general says the federal government cannot access it and gives me that opinion, I will sign the bill,” said Cuomo. “If she says they [the feds] can access it, I will not sign the bill and they should not pass the bill.”

Cuomo’s last-minute move left supporters livid.

“I don’t know what the governor’s motivation is,” bill sponsor Luis Sepulveda (D-Brooklyn) told reporters. “None of these concerns were relayed to us, why now? I don’t know, you’d have to ask the governor.”

Others were more blunt.

“Gov. Cuomo would have answers to his questions if he reads the bill,” said Murad Awawdeh, the vice president of advocacy at the New York Immigration Coalition, which is campaigning for bill’s passage. “I hope he starts looking for the courage to sign the bill.”