Government drops plans to lose thousands of EU laws.