A Manhattan judge has halted congestion pricing from taking effect on Jan. 1 after opponents claimed state legislators passed the fees in the dead of night without weighing potential consequences on the taxi industry.

Supreme Court Justice Martin Shulman issued the order Thursday following an emergency hearing. The ruling delays the start of congestion pricing at least until he holds a more fulsome proceeding on the matter on Jan. 3.

The state passed a truncated congestion-pricing plan earlier this year that created a surcharge for all for-hire rides in Manhattan south of 96th Street starting in January. It will cost an extra $2.50 for taxis, $2.75 for Uber, Lyft or other black cars and 75 cents for app ride-shares.

Drivers say the law unfairly targets them and will take so much of their business that they won’t be able to survive. Eight for-hire drivers have committed suicide in the past 13 months over failing finances.

The plaintiffs in the case include the brother of one cabbie suicide victim and the best friend of another. The brother of cabbie Kenny Chow, who killed himself in May, also signed on to be a plaintiff.

“My brother Kenny killed himself because of the chaos in the industry caused by the failure of New York City to properly regulate Uber and the other FHVs,” said Chow. “Now comes this unfair and discriminatory surcharge that will be the nail in the coffin for 6,000 immigrant medallion owners like myself.”

The suit also names the city and the Taxi and Limousine Commission as defendants.

TLC reps did not immediately return messages seeking comment.