The Manhattan district attorney’s office announced Wednesday that it would no longer prosecute prostitution and unlicensed massage, putting the weight of one of the most high-profile law enforcement offices in the United States behind the growing movement to change the criminal justice system’s approach to sex work.