The yearslong court battle pitting East Hampton Town and the town trustees against property owners along a 4,000-foot stretch of ocean beach on Napeague popularly known as Truck Beach ended on Tuesday, as the homeowners' associations prevailed in their quest to claim ownership of the beach adjacent to their properties.