The bill comes in response to a 2021 decision by the Texas Court of Criminal Appeals.