Managing homeless accommodation in Dublin made €3 million profit