Answer
Document why the action was necessary, preserve the relevant records, and follow any authority reporting or explanation requirement that applies. An emergency deviation should be no broader than needed to address the danger.
Explanation
Emergency authority is not a general exemption from the rules. The pilot should be able to explain the safety reason for the action and support that account with records.