AUSTIN, Texas (AP) — A North Carolina-style "bathroom bill" in Texas won preliminary approval Tuesday in the state Senate over the objections of big businesses including Amazon and American Airlines, celebrities such as Lady Gaga and warnings from the NFL and NBA.

The bill requires transgender people to use public bathrooms that correspond with the sex on their birth certificate. But it still faces big obstacles that could ultimately derail the proposal in the Republican-controlled Legislature.