Closure of Brooklyn hospitals raises legal concerns for patients