There's an argument to be made that an alternate timeline isn't the same timeline, and therefore, the 24th century temporal prime directive would not apply. It may just be conventional application of the prime directive, as it applies to pre-warp civilisations. They'd likely try to get them back, and either give them the choices of keeping quiet, or having their memories of the future altered/erased, to avoid interfering with that iteration of Earth's development.
If there is no way of them going back, then they would likely get the standard time-displacement reintegration package. The circumstances are close enough, and it would hardly be the first time ancient humans from over 3 centuries ago would crop up.