A federal effort to restrict imported crabmeat has sparked a legal fight that could disrupt supply, drive up prices and reshape the seafood industry.