An acting state Supreme Court justice was allowed to remain in his position for 10 months after being admonished by the state’s Commission on Judicial Conduct, despite administrative rules barring disciplined acting justices from doing so.

Acting Brooklyn Supreme Court Justice Michael Gary, who has spent 23 years as a state judge, was sent down to the city’s Criminal Court, according to an order effective Wednesday.