New York is what is known as a one-party rule state.  That means that in New York the penal law makes it a crime to record an in person or telephone conversation unless at least one party consents.  One did.  That would be you.  So you are free of any criminal implications if that is what you are asking.  Now, as for the way the professor treated you you absolutely need to do something about it.  But I would have more than just the recording as evidence and I would seek help from a trusted person to help.  The professor is not stupid and there will never be any third party corroboration.  But you need to build your case here.  Possibly find others that this also happened to.  The recording is your topping on the cake here, so to speak.  Good luck.