Democratic lawmakers wanted to replace a defunded agency by creating a new office that would look at health inequities across the state. But after Republicans pulled it into ongoing debates about transgender rights and critical race theory, the bill died in the Senate.