A court ruling over property in Half Moon Bay could affect thousands of seaside properties from San Diego to the Oregon border.