Waterfront homes in Mastic Beach, Long Island. A $1.2 billion plan would build dunes and marshes and elevate roads to protect flood-prone communities from  Fire Island to Montauk Point.