SPRINGFIELD, Mo. — Republicans in the Missouri Senate endorsed a pair of bills early Tuesday that would ban gender-affirming care for minors and restrict them from participating in sports, a move that follows the state attorney general’s emergency rule limiting the treatment.

Approval of the bills, which came after a 13-hour Democratic filibuster and closed-door negotiations, means the measures need one final vote in the Senate before being sent to the House. It marks a significant hurdle overcome by Republicans, who previously have been unable to come to an agreement on an issue that has risen to the top of their agenda this year.

It is likely to move steadily once it gets across the building to the Republican-controlled House.

Senate Bill 49 permanently bans “gender transition surgery” for minors, which medical experts have said is rare, and outlaws prescribing puberty-blocking drugs and cross-sex hormone therapies to minors until 2027. It makes exceptions for minors who have been prescribed those medications prior to the bill’s effective date of Aug. 28, allowing them to continue receiving treatment that opponents of the bill have described as critical health care.

Attorney General Andrew Bailey issued the emergency regulations on Monday to halt “experimental gender transition interventions” for minors. He outlined a series of required “guardrails” for any treatment for minors, including informed consent and an 18-month waiting period to receive the care.

The emergency rule must be approved by the Secretary of State’s office before being published in the Missouri register and going into effect.

“I am dedicated to using every legal tool at my disposal to stand in the gap and protect children from being subject to inhumane science experiments,” Bailey said in a statement.