A Nigerian court on Thursday declared invalid the nomination of Atiku Abubakar as the presidential candidate for the opposition African Democratic Congress, with just two months to go before the country's elections.