There is an extensive article by AAP on analgesia in newborns available in their website. All the recommendations are given there. Routine sedation is not warranted in ventilated neonates & is associated with bad outcomes (Ref- A metaanalysis which includes NEOPAIN study). An infant fighting the ventilator is most likely due to inadequate ventilation & sedation would mask away these signs & further worsen gas exchange. Rather adjusting the ventilator settings is a better way of dealing with it. Finally if you do plan to sedate, always avoid midazolam & prefer fentanyl as first choice.