The Court of Appeal has upheld legislation which allows the abortion of babies with Down's syndrome up until birth, after a challenge by a woman with the condition.