This ruling just means that the law requiring ISPs to retain data is invalid. It doesn't ban national governments from passing their own laws to the same effect.
There are probably a lot of technical details involved but I don't think you can make such national laws or in case you can you probably can challenge them and get them retracted. The decision is more or less based on universal human rights and they should apply to EU and national law in the same way.
The Data Retention Directive has already been struck down locally in every state where it has reached the highest courts, so especially after this, a similar law will probably not survive.
It might actually be better if a high court deems the national law to be just fine, since you might get a verdict in the European Court of Human Rights.
That's probably pretty unconstitutional in most countries, though. And if the EU court has a problem with ISPs keeping this data for privacy/human rights reasons, I would imagine it would be even more aggressive against governments doing that.
Actually the opposite is true the EU governments have the national security get out clauses which a private company does not have access too.