New Jersey has given up trying to defend a state statute that punishes Internet publishers for posting personal ads advertising sexual liaisons with minors—a law found irreparably unconstitutional here and elsewhere.

Attorneys for the state and for two publishers agreed Wednesday to a proposed order, now before U.S. District Judge Claire Cecchi in Newark, to permanently enjoin enforcement of a provision of the Trafficking Prevention, Protection and Treatment Act.