An MLA has demanded answers after it emerged almost £10m has been spent on a green energy project at one of Northern Ireland’s main hospitals which has been put on indefinite hold.