Undocumented immigrant teen has abortion ending weeks-long court battle