A Sinn Fein MLA was the subject of a pointed comment by the Speaker of the Northern Ireland Assembly over dress code.