A Nigerian court has ordered seven local banks to transfer a combined US$793m to the government immediately.