A Middletown nonprofit is getting $243,000 in federal funding for its mental health and substance abuse programs, including renovations to a treatment center for women and children.