Title IX includes a "state interest" clause which the courts have interpreted to mean that state can stick it's nose into any local issue it wants to.
(If anything, NYC is afforded an unusual degree of home rule relative to other municipalities in NY, as evidenced by the fact that it's really 5 counties in a trenchcoat.)