The Alabama Senate passed an antiabortion bill that would effectively ban the procedure and is aimed at reaching the U.S. Supreme Court to challenge a woman’s right to terminate a pregnancy.

The Republican-led chamber approved the measure Tuesday 25-6 after lengthy debate and a filibuster by Democrats. It passed the GOP-led state House of Representatives 74-3 last month.

Republican...