Their training would be to handcuff the person to ensure that they could not
- use a concealed weapon
- punch someone in the face
- kick (being handcuffed affects your balance)
- pick something up up off a table and bash someone over the head with it
- make a grab for an officer's firearm
- etc.
The officers have been called to a court room with a panic button operated by court staff (in this case the judge) It's a panic button, the situation requires immediate action.
When asked, the lawyer refused to be handcuffed so the officers escalated. When law enforcement say that they are going to arrest and handcuff you, it is not the opening line in a debate.
She fought back when they escalated so they escalated further. In the end it took four officers to get her under control. Four officers seems excessive but is not uncommon as each officer will try to restrain a single limb. The person resisting arrest is overwhelmed to prevent them hurting themselves or others.
Once the judge had pressed the panic button, the outcome was always going to be that the lawyer would be leaving the court in handcuffs with officers. The ensuing battle is terrible to watch but she walked out of the courtroom, no blood spilled, no broken bones.
The whole situation could have been avoided if the lawyer had just followed the instructions they were given. Instead she decided to rage like a adolescent male who has had too much to drink on a Friday night out - so perhaps she has indeed achieved gender transition.