Texas has passed a law banning abortions from as early as six weeks into a woman’s pregnancy, becoming the latest state to challenge US abortion rights, in anticipation of a hearing in the Supreme Court later this year.