In the case of the Paladin, an alignment change turns him into a weak fighter with no magic. Additionally, and here's what creates Captain Jackass, they have to follow a code of conduct: "respect legitimate authority, act with honor (not lying, not cheating, not using poison, and so forth), help those in need (provided they do not use the help for evil or chaotic ends), and punish those who harm or threaten innocents." They also must not associate with anyone that violates that code themselves. They can't even be in a party with those that aren't lawful good.
With how this is typically interpreted by players and DMs alike, this is a formula for the Paladin to be a major tool.
As for Necromancers, necromancy is itself evil.
That isn't to say that the two can't get along, provided the players and DM don't confuse alignment with "shorthand for roleplaying."
To be honest, as a DM, I tend to throw the "alignment" crap out the window in D&D. The exceptions being you cant play Chaotic Neutral (you'd have no character reason to join a party of players or stay with a party of players because you live in the moment and only do what your whims say) and you can't play Chaotic Evil (I like to run campaigns where players are heroes... or at least aren't the badguys).
That being said, most of the Necromancy stuff doesn't actually have to be particularly practiced at all. Some of it could even be entirely useful to a campaign (being able to resurrect the dead when you need to as well as talking to the dead can be particularly useful). If you want one of the better examples out there of how a Paladin and a Necromancer can actually work together without altering each other's alignments, I suggest you look up on YouTube a video by TheSpoonyOne titled "Die a Hero and Die Long Enough to see yourself become the villain" as well as his video "Where have all the lawful goods gone?".
Basically, if you're playing a Paladin who can't be in a group of people who aren't also lawful good... You're roleplaying it wrong. Also, because a Paladin is Lawful (meaning, he follows the laws), if there are local laws that don't prohibit or even outlaw Necromancy at all, the Paladin has jack and squat to say about it, because it isn't against the law. If the Paladin is also good (as most Paladins are lawful good in most editions of D&D, unless you play 4E or onward, which can have chaotic evil paladins, since paladins are simply turned into holy warriors... warriors of one god or another... and in 5E they're explained as warriors with some kind of cause and oath they uphold... not necessarily to a God or a religion), then you have to consider what the Paladin him/herself considers good. Is it wrong to animate a corpse for answers if it means you get to take down a bigger evil later on?
The problem most players in D&D have is they get hung up on that silly alignment chart and forget that it's more a broad set of guidelines instead of rules. A Paladin is a person. A Necromancer is a person. This doesn't mean they have to approve of every single thing the other does, and it doesn't mean they have to be jackholes about their disagreements. It also doesn't give the Paladin license to run roughshod over the party or over a less-than-honest member of the party just because they're lawful good.
You know who is Lawful Good? Superman. If you're a Lawful Good Paladin, just play Superman. Superman isn't a killcrazy jerk who laser eyebeams purse snatchers and jaywalkers. The only reason Paladins get such huge amounts of flak is because too many players play D&D just to rob and kill absolutely everything and want high body counts. Think about that. What if a Rogue or Thief class doesn't actually use his/her skills against innocent targets? What if the lockpicking is done in dungeons, or to get to the big bad? What if the pickpocketing is used on badguys so the big bad doesn't get the McGuffin and destroy the world? Is it more important to stop the guy using dangerous magic to murder everyone... or the Necromancer in your party using their magic to help get you closer to stopping that guy?
Personally, I think Paladins only end up as "a major tool" because a vast majority of players don't understand how alignment works, what it's purpose is, or even how to roleplay anything that isn't some tabletop version of a video game complete with robbing everyone blind and going killcrazy on any and everyone in their way.
I have had players roleplay Paladins quite well. They don't play uppity characters, and they adhere to their alignment as much as humanly possible (except where it would outright stupid to do so... as in... could result in someone being killed... or the quest being failed in some way). That's kind of the fun of having a Paladin in the group, to be quite honest, is challenging them. They have this strict moral code and alignment code... but the world is shades of grey and it's fairly impossible to accomplish anything of consequence being a flamboyant goody-two-shoes. The point is that there are ways to play Paladins with players who aren't quite "kosher". It's even possible to have a Paladin with a criminal background, who is now reformed and wants to change.
Anyway, that's probably straying enough off topic for now.
I'll cite something from my own game as an example. I have a Paladin and a Cleric in my game. I also have an optional Necromancer you can take as a party member at some point. The three do not always get along, but writing some of their dialogue has been some of the most fun I've had in game design to date. They each recognize that they're all in the same boat together and causing actual problems in the group isn't worth it, but they have philosophical and moral differences to each other. A lot of their dialogue exists to kind of temper both sides of the argument. The Cleric, in particular, has a very "on the fence" way of thinking about morality. She tries to do good whenever possible, but recognizes that it may not always be a possibility or have a desirable outcome. She's grown very cynical over the years with seeing how humanity acts despite all the good she tries to do in the world. The Paladin himself has grown disillusioned with his own God because of how many evil and malicious acts he's seen in the world. He stops evil where he can find it, but it is very much a "Why do I bother when this never ends?". Meanwhile, my Necromancer isn't all that evil, but he provides counter-balance to the two's arguments for "why bother?" and "humans suck". In return, their arguments to him help temper his own worldview and somewhat convince him to maybe use his power for something other than selfish reasons, even if the power isn't entirely kosher.
The running theme of my game is "damaged people being fixed through conflict and friendship". Much of their dialogue even changes depending on how the main character treats them. It is just one of the ways I try to incentivize players to maybe play around with the "late game" characters. Their personalities and interactions amongst each other. The Cleric talks and acts differently to the Necromancer than she does to the Thief. The Paladin talks differently to the Ranger than he does to the Witch. Taking different party combinations around to different places tends to result in different dialogue, which sometimes moves a variable I have up or down to track how "tempered" a character is, and how close they are to becoming "fixed". I am hoping that this simple mechanic has players at the very least bring different characters along just to see what they say and how they interact.
I have also tinkered with their individual playstyles as well, so they all act differently in combat, so that players will pick the playstyle that suits them, and use those characters.
The last thing I did was give each individual character their own set of Quests. These quests only show up if they are in your party, and fill most of the game. You can beat the game without ever doing all of these quests, no problem, but they exist to provide a rich experience for whomever you bring along with you. These quests also exist to provide specific upgrades to the specific character they're intended for (like equipment, stat upgrades, upgrades for skills and spells, things of that nature). It's a reason to bring other characters along through an area twice... or three times. It's also an excuse to bring new characters back to old areas to see if there are quests to be done for them there.