A Federal judge has approved a settlement under which New York State has agreed to give more than 3,000 residents of group homes for the mentally ill the opportunity to move into their own apartments and live more independently in the community.

But Eastern District Judge Nicholas Garaufis (See Profile) said the agreement should have come sooner.