How can regulations on pilot night flying balance safety and operational efficiency?

The recent debate about relaxing court orders on restricted night flying highlights concerns about pilot fatigue and airline operations. I want to understand how authorities can ensure both safety for pilots and efficiency for airlines.