A federal judge threw out a lawsuit Friday seeking to block a new law that will allow illegal immigrants to obtain driver’s licenses in New York.

US District Judge Gary Sharpe of the Northern District of New York dismissed the suit filed by Rensselaer County Clerk Frank Merola, who argued compliance with the law will put him in direct conflict with federal immigration law.

Sharpe ruled Merola didn’t have the proper standing to bring the case.

However, Sharpe did not affirm the law’s legality either, claiming sometimes the courts are not able to rule on the merits of the case “to the dissatisfaction of the parties and public-at-large.”

The “green light law” will take effect as planned, tomorrow Dec. 14, paving the way for undocumented individuals to apply for and obtain driver’s licenses from the Department of Motor Vehicles.

Merola could not be reached for immediate comment.

Attorney General Letitia James, a Democrat, chalked up the dismissal as a win for her office.

“The Green Light law is legal and enforceable, and two separate federal courts have now already dismissed the meritless claims of two county clerks,” she said.

This is the second lawsuit over the law to be rejected.