A proposed EU law designed to scan online communication to keep kids safe from online sexual predators has been shelved over worries it could undermine fundamental privacy rights.