A Manhattan state judge has extended a 2003 settlement requiring New York City for two more years to help mentally ill inmates of city jails re-enter society.

Acting Supreme Court Justice Geoffrey Wright (See Profile) ruled Friday that the city has failed to comply fully with the settlement, which came out of a 1999 lawsuit filed by the non-profit Urban Justice Center on behalf of a class of mentally ill inmates.