The amount of time prosecutors in New York have to bring charges of rape in the second and third degree will be extended after state lawmakers approved legislation to extend that window late Wednesday.

The legislation was approved nearly unanimously in the state Senate Wednesday evening after passing in the state Assembly earlier in the day. It has support from Gov. Andrew Cuomo.