Launched in 2012, the cash-for-residence programme has performed well financially but also attracted strong criticism from the EU.