A housing scheme originally designed to help Australians buy a home has been accessed by more than 54,000 non-citizens.