The Impact of Medication Delays on Patient Health in the ICU: Estimating Marginal Effects Under Endogenous Delays