A decadelong conflict over the condition of a New Jersey resort town's beaches, involving tens of millions of dollars in litigation and fines, could come to an end soon.