On Monday they passed a bill that would allow “undocumented” persons — illegal immigrants — the right to a driver’s license.

Gov. Andrew Cuomo quickly signed the measure into law, fulfilling one of the top priorities of the left wing of the Democratic Party. But do New Yorkers understand the implications of this disastrous decision by the parliament of hacks in Albany?

Leave aside the sponsors’ boast that this is what the people want, an argument belied by the resistance this bill generated throughout the state outside of deep blue New York City. Its advocates also claim it will make our roads safer and provide a windfall in fees. Both are highly doubtful. Most illegal immigrants stay in the shadows so as to avoid being held accountable for breaking the law. This won’t change no matter what incentives the state gives them to gain “documents.”

But even if both assertions were true, the main purpose of this move isn’t to make the lives of otherwise inoffensive people easier. It’s part of a push by Democrats to blur the distinction between citizens and noncitizens and to roll out the welcome mat in a way that will render futile any effort to halt the surge of illegal immigrants at the border.

Those who sympathize with illegal immigrants may think of opponents of Albany’s move as racist and the law as a thumb in the eye of President Trump. But what they are really doing is trashing the rule of law and making a mockery of those immigrants who do obey the rules.

Despite promises to the contrary, Democrats are creating a path to allow illegal immigrants to vote. That’s fine by them, of course, it just means more votes for Democrats.

Cuomo and the Legislature are demonstrating the price New Yorkers pay for having a one-party state with no effective check on the Democrats’ Alexandria Ocasio-Cortez/socialist wing. But what they’re also doing is showing us what happens when we elect politicians who no longer believe in the sanctity of the law or the concept of citizenship.

Jonathan Tobin is editor in chief of JNS.org and a contributor to National Review. Follow him on Twitter at: @jonathans_tobin.