Foreign contribution can have a material impact in the matter of socio-economic structure and polity of the country, the court order said