The Trump administration had tried to block two young immigrants from ending their pregnancies, but it relented after a judge ruled for the women this week.