Judge bars boat from dredging for clams