A large number of refugees brought to Australia under the now repealed medevac legislation have been released from immigration detention.