Couples celebrate the Supreme Court decision on same-sex marriage in front of a rainbow-lit White House in June. (Michael S. Williamson/The Washington Post)

The White House hailed the failure of a Tennessee bill that would have required all students in public schools and universities to use the bathroom that matched the gender recorded on their birth certificates.

The bill's sponsor, state Rep. Susan Lynn (R), withdrew the measure Monday and said she would retool it and offer it next year after seeing how legal challenges to similar bills in other states fared.

In a statement Tuesday, White House spokesman Jeff Tiller said that the bill would have violated Americans' civil rights.

"Legislation that undermines the equal dignity of all students has no place in Tennessee, or anywhere else," Tiller said. "Like so many other business leaders, local officials and engaged citizens across the state, we had serious concerns about the legislation and are pleased to see the bill is not moving forward."

"We remain firmly committed to promoting and defending the equal rights of all Americans, including the rights of LGBT students across the country," Tiller added.

Tennessee's Republican governor, Bill Haslam, had raised concerns about the measure, and the state’s attorney general had issued an opinion saying that the state risked losing as much as $1.3 billion in federal funds for education if the bill became law.

At least five federal agencies, including the Education Department, are examining whether they can withhold money from North Carolina in response to its new law eliminating some protections for lesbian, gay, bisexual and transgender people and barring individuals from using the bathroom of their choice.

Chief executives from 60 companies, including Williams-Sonoma, Hilton Worldwide and T-Mobile, signed a letter last week calling the Tennessee bill discriminatory.

But a group of state religious leaders said the measure provided protection for students' privacy. David Fowler, president of one of those groups, the Family Action Council of Tennessee, said in a statement that “consistent opposition from the governor’s office and others” doomed the bill.

As backlash continues against North Carolina's "bathroom bill," some musicians are canceling their N.C. shows in protest while a growing group of artists - including a trans lead singer - says their shows will go on. (Jenny Starrs/The Washington Post)