Ruling party cites 'controversy in society' over legislation on NGO funding that critics said would stifle media freedom and civil society