The phrase comes from pool (or billiards). When the cue (white) ball is behind the eight (black) ball, a player usually has no shot.
Has come to modern usage meaning you are in a bad situation or about to lose....or lost someone or something.
I've been behind the eight ball ever since she left.
They put us behind the eight ball when they drafted that kid from Pacoima in the first round!