Judge Rules Maine Dam Can Be Sold to Property Owners