As seen in S05E10 "Something Unforgivable" (Season 5 finale), the plot against Howard was Kim's idea, rather than Jimmy's. Kim introduced the idea to Jimmy and Jimmy initially expressed disagreement about Kim's plan. In that episode, Kim states her motivations and various reasons to go after Howard.
(Emphasis mine in all quoted text below)
Kim expresses her initial motivation to go after Howard, which is the culmination of events leading to the Season 5 finale:
Kim: So, I ran into Howard at the courthouse today.
Told me something about bowling balls destroying his car. Prostitutes harassing him at lunch...
[...]
You know why Hamlin told me all that?
It was for "my own good".
Like... Like I'm just waiting for him to ride up on his white horse.
It's all about him... it's always all about him.
The guy is in love with himself.
He needed to be taken down a peg.
Kim suggests getting Howard into committing misconduct and states various reasons to do so:
Kim: What if Howard does something terrible?
Jimmy: Like he murders a waiter for putting butter on his cauliflower... ?
Kim: No, I mean really bad. Like misconduct. You know, misappropriating funds and, um, bribing witnesses... something like that.
You know what that'd mean for the Sandpiper case? A big class action suit? It could tank the whole thing. Cliff Main's hair would be on fire. He'd get it settled. Pronto.
Jimmy: He would?
Kim: Yeah. Think about how much they've put into that case. Almost two years of work.
If it fell apart now, they'd get nothing. So, yeah. Cliff Main would take whatever Sandpiper was offering.
Jimmy: I already tried like hell to get Sandpiper settled.
Kim: Yeah, but you went about it wrong. Sorry, but... this is how you do it.
And it's not like the old folks'd get stiffed. If Sandpiper settled now, they might each get 15, 20 bucks less, but they'd get their money now, while they can still use it.
Jimmy: And the lawyers get paid.
Kim: And the lawyers get paid.
How much of the common fund do you get?
Jimmy: We get 20% of the common fund.
Kim explains what she'd do with the money:
Kim: So, what would you do with it?
Jimmy: I don't know. What would you?
Kim: I'd hire Stef away from Schweikart. I'd hire Bruce from HHM. I'd get Viola.
I'd rent the smallest, shittiest office I could find near the courthouse and open a pro bono practice.
Give regular people the kind of representation usually only millionaires get.
Jimmy: I was gonna say we'd buy a house.
Kim: Sorry. [laughs] Yeah, yeah, yeah, yeah. We could do both. Last I heard, Sandpiper was willing to go to $26 million.
Jimmy: Wow. Um, a third of that is $8.5 million.
Kim: Mm-hmm. And 20% of that is...
Jimmy: Around $2 mil.
Jimmy expresses some disagreement about the plan:
Jimmy: Ah, but it's not happening.
Come on, Kim. We're not talking about a bar trick here.
We're talking about scorched earth. We would have to hurt him. Hurt him bad.
To get a bunch of lawyers to run for the exits? Howard would have to have done something... unforgivable.
Jimmy: At the end of it, he might never be able to practice law again. Ah, he doesn't deserve that. And who knows if we could pull it off?
Okay, maybe we could pull it off, yeah. But we won't.
Kim: We're talking about a career setback. A career setback for one lawyer.
Jimmy: Yeah, and you could help a lot of people. I-I get it, but... Kim, doing this, that... It's not you. Okay? You would not be okay with it. Not in the cold light of day.
Kim: Wouldn't I?
[...]
Jimmy: Kim, you're shittin' me, right?
Kim: [Makes "finger guns" gesture] P-chew! P-chew!
- Better Call Saul S05E10 "Something Unforgivable"
Rhea Seehorn (actor who plays Kim Wexler) was interviewed about Kim Wexler's motivations for going after Howard:
“We’ve been seeing her [Kim Wexler] increasingly have this massive chip on her shoulder about the Kevin Wachtells of the world and the Howard Hamlins of the world,” Seehorn said. “She definitely has issues, I think, with people who didn’t make their own way in the world or she doesn’t feel earned their status and or their money. She keeps watching people who do color in the lines and play by the rules and it ends shitty. It gets old people kicked out of their homes. It makes rich people get richer, poor people stay poor.
“She keeps getting example after example that you are not going to get the results you want, where the ‘good guy’ wins, if you play by the rules. So maybe these rules were the wrong set of rules to begin with,” Seehorn said.
Note: "Peter" below refers to Peter Gould, Better Call Saul co-creator, director and writer.
“Peter said to me all through the season, ‘It’s like Kim has gotten to a place where she thinks that if she could just lightly put her finger on the scales of justice so that they keep going in favor of the good guy, that it’s not really that bad.’ Of course, that’s an incredibly egotistical, dangerous game to be playing, that you’re choosing who you think deserves anything. So it’s not so much abandoning all your principles as little by little thinking, ‘Well, this one doesn’t count because the guy doesn’t deserve to go to prison anyway.’ Or ‘I’m going to cut people off in traffic just this one time because it’s an emergency.’ We all do it. She’s doing it on a magnified scale.”
- ‘Better Call Saul’: Rhea Seehorn on the Parts of Kim Wexler That May Still Survive. IndieWire.
Rhea Seehorn and Bob Odenkirk state their opinions on Kim's behavior in a Vanity Fair YouTube video (the relevant part starts at 08:56):
Quoting Rhea and Bob (emphasis mine):
Bob: I mean, she likes helping people, that's for sure.
She's kind of rejected life in a high-end law firm to serve as many people as she can, in an almost manic, we could say-
Rhea: It is a bit manic.
Bob: Behavior of-
Rhea: This constant offsetting your carbon footprint kind of theory about doing bad in the world of like, "I'll just help enough good people and then this won't count."
Bob: Now I can do some bad shit when I feel like it.
- 'Better Call Saul' Fan Theories with Bob Odenkirk & Rhea Seehorn. Vanity Fair