ABUJA, Nigeria (AP) - A Nigerian court has set aside its order for the temporary seizure of one of Africa's richest oil blocks from multinationals Royal Dutch Shell and Eni.

Justice John Tsoho upheld the application filed by Shell and Eni challenging a January court order ceding control of Oil Prospecting License 245 to the government while the Economic and Financial Crimes Commission investigates a $1.2 billion corruption scandal.

The judge ruled that the forfeiture order was irregularly filed.

Nigeria has filed criminal charges of corruption against Shell and Eni over the sale of the oil block. The charges allege the companies paid $801 million to a former oil minister, a former justice minister and a businessman for the block's license. Nigeria's government got only $210 million from the deal.

Both companies deny wrongdoing.