Network Rail has apologised after passengers on their way to and from Gatwick Airport faced delays to their journeys.