First, you may want to use the "save as" option, while the game is running, so that you keep your current save intact while testing these steps. You may wish to give it a different name like "Family Tree Testing" to keep track of which save is which.
Then, I suggest moving the sims back from the 2-sim household to reestablish the original 8-sim household and to preserve all the existing relationships. Once they're back in their original household, take them to CAS and save them to your library. If you want to keep any inventory items, go back to Live mode and place those items on the lot; this includes items in personal and household inventories.
After that, go to the 2-sim household and save them to the library as well. Also put any inventory items that you want to keep on their lot.
Once you have placed all inventory items you want to keep and saved both households to your library, go to Manage Worlds and delete both households from your game.
After deleting the households, select the lot you designated for the 8-sim household and use the "Create New Household to Move In" button in the lower right corner of the Map view. From CAS, use the Gallery / Library button to load the 8-sim household that you saved. Double check that all their relationships are correct. Then click the check button to have them move in. If there aren't enough household funds to buy their house, you can use the "freerealestate on" cheat to get them back into their house.
Once the 8-sim household is in place, click on the lot you designated for the 2-sim household and follow the same process to move them in.
Now use the Manage Households UI to split the sims you want to move from the 8-sim household to the 2-sim household. Close the Manage Households UI and enter the "cas.fulleditmode" cheat. Open the Manage Households UI again and edit the new 2-sim + transferred sims household. When CAS opens, edit the relationships as you wish. When you're done editing that household, then click the check button to play again.
At this point, load one of these households to play and check the genealogy / family tree panel to make sure the relationships between the two households are correct.