Attorney General Eric Schneiderman said Wednesday he will file legislation allowing people who were wrongfully convicted of a crime to sue New York State, even if they confessed or otherwise helped “bring about” their own convictions.

Advocates of the attorney general’s proposed change said it would remove a significant roadblock for people seeking restitution for their arrest, prosecution and imprisonment for crimes they did not commit.