The justice secretary has been given a minor sanction following a row over her comments about a sexual exploitation expert.