A residual effect is what remains after the intended effect has faded, most familiarly the grogginess, slowed thinking, or heavy-headedness some people notice the morning after a sedating medicine.
Residual impairment can be present even when a person feels reasonably alert, which is why official labeling warns about driving and operating machinery until the individual knows how a medicine affects them.