Ex-homeless shelter head agrees to settlement