The Texas governor, Rick Perry, called a second special session of the state legislature to pass controversial abortion restrictions, after the first attempt by Republicans died overnight thanks to a marathon one-woman filibuster.

On Wednesday, Perry ordered lawmakers to meet again on 1 July to act on the abortion proposals, as well as separate bills that would boost highway funding and deal with a juvenile justice issue. The sweeping abortion rules would close nearly all abortion clinics and impose other widespread restrictions on the procedure across the nation's second-largest state.

The measure passed the House, but died after a Democratic Senator, Wendy Davis, led a filibuster effort that lasted 12 hours. Hundreds of protesters cheered and clapped in the public gallery, disrupting Senate proceedings as the session closed at midnight. That sparked boisterous chanting from the public gallery, which lasted until after midnight and threw proceedings into turmoil. Amid the din, no one was sure if a vote had taken place in time. Democrats claimed it happened a minute or two after the deadline, while Republicans said the vote should stand.

After initially appearing to declare that the bill had gone through, lieutenant governor David Dewhurst said at about 3am that it had passed by 19 votes to 10 – but added that the "ruckus and noise going on" had prevented him from completing the formalities required to rubber-stamp it into law.

Senator Wendy Davis begins her marathon filibuster. Photograph: Eric Gay/AP

"I didn't lose control of what we were doing. We had an unruly mob … using Occupy Wall Street tactics," he told reporters. Finally lost for words, Davis said that she was "overwhelmed".

The proposals called for abortions to be banned after 20 weeks, clinics to upgrade their facilities to be classed as surgical centres and doctors to have admitting privileges at a hospital within 30 miles. They would have forced 37 of the state's 42 clinics to close, according to opponents, making it very difficult for women in rural areas to obtain an abortion.

Tuesday's filibuster went viral and more than 150,000 people watched via YouTube. Thousands more followed on Twitter, especially after President Obama brought events to his 33 million followers' attention, telling them "Something special is happening in Austin tonight" and using the hashtag #StandWithWendy.

Associated Press in Austin contributed to this report