A controversial abortion bill is now on its way back to the Senate. The Texas House formally passed the stricter regulations Monday morning, despite Democrats’ efforts to block them.

Debate lasted well into the early morning hours, as hundreds of abortion-rights supporters looked on from the gallery. Democrats had been hoping to stall the legislation long enough that the Senate would be able to kill it via filibuster ahead of Tuesday’s midnight deadline. Lawmakers spent 15 hours offering up amendments and using parliamentary tactics to delay the process until Republicans finally voted to suspend debate.

SB 5 is the omnibus abortion bill already passed by the Senate. It requires abortions to be performed in ambulatory surgical centers, requires doctors to have admitting privileges at a nearby hospital and requires that the abortion drug RU 486 be administered in person by a doctor. The House version includes a ban on abortion after 20 weeks of pregnancy, which the Senate version does not.

Opponents have said the new rules would force all but five abortion clinics in the state to shut their doors. The bill’s supporters argued it will lead to improved women’s health care.

The Senate will now have to wait 24 hours before considering the changes made to its version. That means a Democrat in the Senate would have to speak on the floor for more than 24 hours to kill the legislation.