This would be illegal under EU law
Not necessarily.
timesofmalta.com - EU allows ?52m loan to keep Air Malta flying
Let me add quickly that I know very little about Malta and the special circumstances that lead to the EU approval, but post the article to show that the situation is not black and white.