Malava MP David Ndakwa has secured a major legal victory after the Kakamega High Court dismissed a petition challenging his election in the recent by-election.