According to Memory Alpha, bending the rules was built into the plan.
Article 14, Section 31 of the Charter made allowances for bending Starfleet regulations in times of extraordinary threat. This section was cited as the foundation for Section 31 even into the late 24th century...