The state’s highest court on Tuesday struck down as illegal a New York City edict to regulate pre-kindergarten programs operated by charter schools.

The decision is a victory for Eva Moskowitz’s Success Academy Charter Schools, which sought to open pre-K programs at its schools.