The High Court made the order after rights organisations filed a writ alleging basic safety measures had not been taken and demanding compensation for workers and bereaved relatives.
Around 100 people were working at Tampaco Foils Limited factory on September 9 when a fire caused by an explosion in the boiler room tore through the four-storey building.
It was Bangladesh's worst such disaster since the collapse of the Rana Plaza garment complex in 2013 that killed more than 1,100 people.
Relatives of the victims have already filed a private murder case against the owner, who remains at large, and the government has launched an investigation into what caused the fire.
Also Read
The deputy district police commissioner S.M. Alam said most of the workers listed as missing had now been accounted for.
"I think we are almost near to an end of the operation and soon we will call it off," he told AFP.
The Rana Plaza collapse triggered international outrage, forcing US and European clothing brands to improve deplorable safety conditions at the factories that supply them.
But labour rights groups say much more needs to be done and have urged the Bangladesh government and Western companies to work harder to protect workers in their supply chains.
Disclaimer: No Business Standard Journalist was involved in creation of this content