Michigan lawmakers have taken one of the first steps toward banning a legal strategy known as the “gay-trans panic defense.”