European Court of Justice says amendments, which effectively forced education institute funded by philanthropist to leave the country, were not in line with the bloc's law