Follow CBSDFW.COM: Facebook | Twitter

AUSTIN (AP) — Texas’ Republican-controlled Legislature is tying itself in knots over a transgender “bathroom bill.”

READ MORE: Flash Flood Watch As Weeklong Wet Weather Stretch Drenches North Texas

The state Senate voted 21-10 vote after 1 a.m. Wednesday to attach rules requiring transgender Texans to use public restrooms corresponding to their birth-certificate gender onto an otherwise unrelated proposal on county governments.

A full bill doing the same thing cleared the Senate in March but stalled in the House, which instead passed a scaled-back version applying only to schools on Sunday.

READ MORE: 3-Alarm Dallas Apartment Fire May Have Been The Result Of An Earlier Blaze In The Same Building

The late-night maneuver brings the wider bill back for now — but it’s on a bill by a Democrat who won’t accept the changes.

Meanwhile, the House’s bathroom bill rules were attached to a separate Senate bill whose author is rejecting them as too watered-down.

Compromise must be reached before Texas’ legislative session ends Monday.

MORE NEWS: 'This Is Trying On Your Soul': Dallas Home Hit By Possible Tornado After Being Rebuilt From October 2019 Storm

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)