A man accused of operating a drug-smuggling tunnel in California has pleaded guilty after being arrested in May.