Perhaps he married them before the law came into force;

"Sharia law, which was reintroduced to the Muslim-majority Niger state in northwest Nigeria in 2000."