EU warns of legal action against Hungary's NGO law