(written from a Production point of view)
This page contains information regarding PIC, and thus may contain spoilers.
In the penultimate scene of the first draft script for the Star Trek: Enterprise first season episode "Fortunate Son", Doctor Phlox, in conversation with Captain Archer, referred to Voltaire, revealing he had thought of the philosopher on the previous night and asking Archer if he had ever heard of him, to which the captain replied, "A little." Phlox then went on to recite a quote Voltaire once made – specifically, "A fortunate soldier who serves his country well has no need of ancestors." The doctor applied that quote to how he believed the boomer Ryan Cross now felt, Cross having just been told he would stand trial on Earth.
The idea that the perfect is the enemy of good is also often traced back to Voltaire, although similar ideas have been expressed earlier. Jean-Luc Picard expressed that sentiment in "Absolute Candor".