The European Parliament votes through cyber-security legislation