Like Leon says, router with multiple passes. I would add: Use a straightedge clamped at a proper distance to guide the router. Start at the far end.
But why do you need a dado/groove? I assume your legs are a frame or a trestle, and you want the top of the frame housed (encastre)(1) into the top. I don't see the need. The top of my workbench is held by one 5" long
5/16" lag bolt in the centre of each trestle/frame, screwed in from underneath. Plenty strong enough and it allows for differential wood movement.(1)How the hell do you get an "accent aigu" on this damn Linux stuff? It's a French product (Mandrake) so it should be easy, you figure.