An effort by the New York Attorney General’s Office to consolidate two separate lawsuits over a new state law that is set to allow undocumented immigrants to obtain driver’s licenses in New York was rejected Wednesday, when a federal judge declined to transfer one of the matters out of Albany.

U.S. District Judge Gary Sharpe of the Northern District of New York in Albany wrote in the decision Tuesday morning that the Albany-based suit had no connection to the other in Buffalo.