I won't disagree outright with that, but what is "the right thing" here?
The threat of litigation is incredibly real when it comes to employment issues. Even the most proactive employers (those that attempt to follow the law and keep meticulous records) face lawsuits from employees, former employees and job applicants. The potential damages can be significant (particularly for certain causes of action) and even small and seemingly baseless claims can easily result in five figures worth of attorney's fees (or more).
Here, despite apparently having some idea that his actions could expose his employer to a lawsuit, an employee decided that his employer should take on legal risk despite the fact that his supervisor effectively told him to proceed in a manner that would reduce risk substantially.
If as a result of this employee's actions, the company was unable to pay someone's salary, or had to allocate money from expansion to legal expenses, would you still suggest that the employee did "the right thing"?