The government responded with restrictive legislation.