Ok anon, we need to know a few things as well. Are you one of the better engineers? It's ok if you're not, I can tell you right now that I'm definitely not in my company and I take shit like this sometimes as well and don't stand up for myself because I'm a spineless coward.
You should have called your manager's bluff and when they tried to sass you out about it, you should follow it up with "Ok then, I'm too sick to come in so I'm taking sick leave." That's surely going to put them behind and it'll make your manager look bad.
Also, write up a half decent linkedin and put your status to casually looking and enable recruiters to find work for you. Everywhere's supposedly got a shortage of software engineers, so recruiters lap that shit right up. You don't need to quit your job right now, you're just opening yourself up to alternatives.
That's what I'm doing. I'm fucking sick of being paid less than the average and I've come a long way and deserve a bit more. Also the products I'm working on are hot trash and I feel 0 motivation to work on them. Worst part, I'm not alone the rest of my team feels shit working on stuff, we're tired all the time and we're all being paid shit. We're about to lose 3 very key people on the engineering side and I'd be panicking if I were management. Fuck them though.