MEPs have voted to reject a proposed overhaul of EU copyright law which had received the support of high-profile musicians and the creative industries, and condemnation from large online technology companies.