This is a direct example.
In one episode, Dr Beverly Crusher is helping treat illness in a remote lab, and becomes irreversibly sick due to damage caused by the pro-active immune systems of the experimental humans.
The transporter is used to reproduce her in the pre-ill state, based on the data held in the transporter memory from her last trip - the one to the lab. The argument used to commit this serious breach of policy was that Dr Crusher was an essential crew member, and a replacement doctor was not possible.
However, because it is a fictional TV series, it isnt a "real" crime. The Orwellian "1984" label "crimethink" could be applied.