Days before the U.S. Supreme Court hears arguments on same-sex marriage, Senator Ted Cruz has filed two bills to protect states that bar gay couples from marrying. Cruz’s legislation would establish a constitutional amendment shielding states that define marriage as between one woman and one man from legal action, according to bill language obtained by Bloomberg News. A second bill would bar federal courts from further weighing in on the marriage issue until such an amendment is adopted. While Cruz’s legislation would face solid opposition in the Senate, it is an attempt to force his competitors to keep the issue alive even if the court rules in favor of same-sex marriage. Last year, Cruz and Utah Senator Mike Lee filed similar legislation to protect more than 30 states that currently define marriage as a union between one man and one woman, but those bills died when the session in a Democratic-controlled congress ended.