State legislation approved in 2001 permits a Southern California wholesale water agency to sell water directly to retail customers, the Second District Court of Appeal has ruled. The ruling was a victory for the Castaic Lake Water Agency over leaders of the Newhall County Water District and slow-growth advocates.