Preheat your oven to 350°F and lightly grease a 9 by 13 inch baking dish. Bring a large pot of salted water to a boil and cook the spaghetti according to the package directions until it is just al dente. You want the noodles tender enough to eat but still slightly firm in the center because they are going to keep cooking once the casserole goes into the oven. Drain the spaghetti well and set it aside. I try not to overthink this part. If the noodles are still holding their shape when you drain them, you are in good shape.
Place a large skillet over medium heat and add the ground beef and diced onion. Cook them together, breaking the beef into small pieces with a wooden spoon or spatula as it browns. Keep cooking until there is no pink left in the meat and the onion looks soft and translucent. Drain off any extra grease so the finished casserole stays rich without feeling heavy. When I make this for my family, I like the beef fairly finely crumbled because it spreads through the sauce more evenly and gives you a little meat in almost every bite.
Add the minced garlic to the cooked beef and onion and stir for about 30 seconds, just until you can smell it. Garlic can become bitter if it sits in a hot dry skillet for too long, so this is a quick step. Pour in the marinara sauce, then add the Italian seasoning, salt, and black pepper. Stir everything together and let the sauce simmer gently for about five minutes. That short simmer gives the beef time to soak up some of the tomato and herb flavor while the sauce thickens slightly.
While the meat sauce simmers, add the softened cream cheese, cottage cheese, sour cream, 1/2 cup mozzarella, and Parmesan to a medium bowl. Stir until everything is evenly combined. It does not have to become completely smooth. A few small bits of cottage cheese are absolutely fine and will soften as the casserole bakes. If your cream cheese is still cold and firm, give it a little extra time at room temperature before mixing. A softer filling is much easier to spread over the noodles without dragging them all over the pan.
Arrange the butter slices across the bottom of your prepared baking dish. Spread half of the cooked spaghetti over the butter, doing your best to create an even layer. Spoon the creamy cheese mixture over the spaghetti and gently spread it from edge to edge. Do not worry if it is not absolutely flawless. This is family dinner, not an architecture project. The cheeses will soften and settle between the noodles as everything heats, creating that rich middle layer that makes the casserole feel so generous.
Spread the remaining spaghetti over the cheese filling. Pour the warm meat sauce evenly across the noodles, making sure you get sauce into the corners too. Sprinkle the remaining 1 cup mozzarella over the top. I like to spread the cheese all the way to the edges because those little browned spots where mozzarella meets the side of the baking dish are some of my favorite bites. At this point the casserole should look full, saucy, and ready for the oven.
Place the casserole in the preheated oven and bake it uncovered for 30 to 35 minutes. You are looking for sauce bubbling gently around the sides and mozzarella that is completely melted across the top. Some ovens brown cheese faster than others, so start checking near the 30 minute mark. The smell usually gives it away before the timer does. Once the tomato sauce, garlic, butter, and cheese start filling the kitchen, everybody seems to find a reason to wander in and ask when dinner is ready.
Take the casserole from the oven and let it rest for about 5 to 10 minutes before slicing. I know that can feel like a long wait when everyone is standing nearby with plates, but it makes a real difference. Resting gives the creamy filling and sauce a chance to settle, which means your servings hold together better instead of sliding across the plate. Cut generous squares or scoop portions with a wide serving spoon, then bring it straight to the table while the cheese is still warm and stretchy.