law critics argue undermines the constitutional rights of transgender individuals and endangers their health