MARGATE, N.J. — The federal government has agreed to clean up the mess it created on a New Jersey beach, where flooding from a dune construction project forced beachgoers to wade through vile water or take blocks-long detours to reach the ocean.
Jordan Rand, the lawyer for Margate, said the town and federal government filed an agreement with US District Court on Tuesday night.
It calls for construction of an underground pipe system to prevent water from collecting between the dunes and the town’s wooden bulkhead.
The plan was signed Wednesday by a federal judge.
‘‘This should eliminate the problem,’’ said Rand, who unsuccessfully sued the federal government on behalf of
homeowners and then the town to try to block the dune construction project. The lawsuits predicted in minute detail almost exactly the type of flooding Margate feared would occur if the dunes were built.
The dunes are part of Republican Governor Chris Christie’s plan for a nearly unbroken line of storm defense along the state’s 127-mile coastline, something he insisted is necessary following the catastrophic damage Hurricane Sandy wreaked in 2012.
Margate, an upscale shore town south of Atlantic City, argues that its wooden bulkhead provides adequate protection against ocean storm surge, and says most of its Sandy damage came from bay flooding on the other side of town.