Texas Sen. Ted Cruz says he supports the ability of North Carolina lawmakers to pass a law restricting bathroom access for gay and transgender people.

Cruz said Thursday during taping of a MSNBC town hall in Buffalo, New York, that states can pass such laws because “men should not be going to the bathroom with little girls.” Cruz says, “That is a perfectly reasonable determination for the people to make.”

But Cruz would not comment on an executive order signed by North Carolina’s governor “to protect privacy and equality” for many state workers “to cover sexual orientation and gender identity.” Cruz says he isn’t familiar with the details of what was signed.

North Carolina has faced a national backlash from gay rights groups, entertainers and business leaders who say the law unfairly targets gay and lesbian people.

© 2016, Associated Press, All Rights Reserved.

This material may not be published, broadcast, rewritten, or redistributed.