Gun safety bill advances in Texas legislature