The city will apply the state’s new laws to offenses dating to 1975, affecting thousands of cases.