Her lawywer did his job; present his client’s case in the light most favorable to the client. The fault here was the prosecutor who allowed her claims of abuse to go unchallenged, allowing her to keep those shoes on the stand throughout her testimony, and other mistakes.
He is still immoral for his work. Many men are paid under contract to do evil in the name of some "greater good". They are all as guilty for it.