New York City has agreed to a $40 million settlement with five men who were wrongfully convicted in the vicious…