The New York Senate passed a bill Monday night that would allow undocumented immigrants to obtain a driver’s license, despite Gov. Andrew Cuomo’s concern that federal authorities might seek to use the information to deport recipients.

The bill narrowly passed the Democratic-controlled Senate, 33-29, after more than four hours of debate and with only two days remaining in the 2019 legislative session.

Cuomo immediately signed the measure into law, but with some reservations. Earlier in the day, the governor said he’s concerned the legislation might have unintended consequences for immigrants who entered the U.S. illegally.

Cuomo said he wants to make sure that federal immigration officials can’t access New York Department of Motors Vehicles records to gain information about undocumented immigrants.

“Why would you pass a bill that would hand President Trump a list of undocumented people?” Cuomo told reporters Monday before the Senate vote.

Cuomo asked New York Solicitor General Barbara Underwood to examine the issue and determine if the state could legally withhold the data on undocumented immigrants from the federal government.

The governor said he believes New York could protect the information if lawmakers make it clear in the bill that DMV records are the sole property of the state and the federal government cannot access the information.

“If we pass a bill that winds up targeting undocumented immigrants, then shame on all of us,” Cuomo said.

Despite Cuomo’s warning, the Senate moved forward and passed the same driver’s license legislation that the state Assembly approved Wednesday.

Advocates said the bill included a requirement for federal authorities to obtain a warrant for access to DMV data on driver’s licenses.

New York will become the 13th state (along with the District of Columbia) to permit driver’s licenses for undocumented immigrants.

The legislation, pushed by progressive Democrats in the New York Legislature, picked up support this spring from both business and labor groups.

Sen. Rachel May, D-Syracuse, was among Senate Democrats who co-sponsored and voted for the bill on Monday. Sens. Bob Antonacci, R-Onondaga, and Patty Ritchie, R-Oswegatchie, were among the opponents.

Republicans who voted against the legislation said it defies the rule of law. Sen. Fred Akshar, R-Endwell, called the measure “a slap in the face for law-abiding New Yorkers.”

The bill expands the types of identity that applicants can submit with an application for a non-commercial driver’s license.

Any person of driving age without a Social Security number could submit a signed affidavit that they have not been issued one. Driver’s licenses issued through the process would not be valid for federal identification purposes.

Contact Mark Weiner: Email | Twitter | Facebook | 571-970-3751