The Michigan doctor who was detained for over two weeks by immigration officials has been released from jail.