Anti-abortion advocates have had their first victories since the US Supreme Court ended the constitutional right to the procedure in 2022.