The European Parliament has rejected controversial new copyright law that critics claimed posed an “imminent threat” to internet freedom