Dozens of shellfish nurseries in Scotland will be protected under new legislation that has come into force.