Government drops controversial legal plans