The bill targets civil society organisations and independent media that receive foreign funding.