Bulldozers and other vehicles have been removed from the building site, which will be fenced with bamboo sticks. Red flags were erected around the site to bar entry.
The last body was found on Sunday night. A special prayer service will be held Tuesday to honor the dead, said army Brig. Gen. Mohammad Siddiqul Alam Shikder.
For more than 19 days, the collapsed Rana Plaza in the Dhaka suburb of Savar had been the scene of frantic rescue efforts, anguished families and the overwhelming smell of decaying flesh.
Miracles were few, but on Friday, search teams found Reshma Begum, a seamstress who survived under the rubble for 17 days on cookies and bottled water.
Begum spoke to reporters Monday from the hospital where she is being treated. She told them she never expected to be rescued alive, and she vowed, "I will not work in a garment factory again."
Working conditions in the $20 billion industry are grim, a result of government corruption, desperation for jobs, and industry indifference. Minimum wages for garment workers are among the lowest in the world at 3,000 takas ($38) a month.
The Rana Plaza owner and eight other people, including garment factory owners, have been detained in the collapse investigation. Authorities say the building owner added floors to the structure illegally and allowed the factories to install heavy equipment that the building was not designed to support.
Fashion retailer H&M, the largest purchaser of Bangladesh garments, said it has accepted a legally binding fire and building safety plan that requires retailers to help pay for improvements to factory safety.
The plan, drawn up by Bangladeshi and international unions, would establish an independent inspectorate to oversee factories, with powers to shut down unsafe facilities and require renovations financed in part by Western retailers.
The Clean Clothes Campaign, which seeks better working conditions in the global garment industry, praised H&M's decision, saying it would pressure other retailers to sign the plan as well.
The agreement was signed earlier by two other companies PVH, the owner of the Tommy Hilfiger and Calvin Klein brands, and German retailer Tchibo.
The Cabinet decision to allow trade unions came a day after the government announced a plan to raise the minimum wage for garment workers. Both moves are seen as a direct response to the collapse of the building, which housed five garment factories.
Government spokesman Mosharraf Hossain Bhuiyan said the Cabinet approved an amendment to the 2006 Labor Act lifting restrictions on forming trade unions in most industries. The old law required workers to obtain permission before they could unionize.
"No such permission from owners is now needed," Bhuiyan told reporters after the Cabinet meeting presided over by Prime Minister Sheikh Hasina. "The government is doing it for the welfare of the workers."
Local and international trade unions have long campaigned for such changes.
Though the 2006 law technically allowed trade unions and they exist in many of Bangladesh's other industries owners of garment factories never allowed them, saying they would lead to a lack of discipline among workers.
Trade union leaders responded cautiously.
"The issue is not really about making a new law or amending the old one," said Kalpana Akter of the Bangladesh Center for Workers Solidarity, a group campaigning for garment workers' rights. "In the past whenever workers tried to form associations they were subjected to beatings and harassment," she said. "The owners did not hesitate to fire such workers."
Bangladesh's government has in recent years cracked down on trade unions attempting to organize garment workers. In 2010 Hasina's government launched an Industrial Police force to crush street protests by thousands of workers demanding better pay and working conditions.
That year police arrested at least six activists, including Akter, on charges of instigating workers to vandalize factories. They were later freed, but some charges are still pending.
The activists are also angry that police have made no headway in the investigation of the death of a fellow union organizer, Aminul Islam, who was found dead a day after he disappeared from his home in 2012.
"Islam's case is going nowhere even though police say they are investigating," said Akter.
On Monday, nearly 100 garment factories shut down in the Ashulia industrial area near Dhaka, the capital, after protests erupted over the death of a female worker whose body was found inside a garment factory.
The body of Parul Akter, 22, was found on Friday. A local police official, Badrul Alam, said she committed suicide.
Thousands of workers took to the streets Monday and vandalized vehicles and shops before police used sticks to disperse the protesters. Several people were injured, said a police official who spoke on condition of anonymity because he was not authorized to speak publicly.
The wage board will include representatives of factory owners, workers and the government, he said.
Bangladesh has 5,000 garment factories and 3.6 million garment workers. It is the third-biggest exporter of clothes in the world, after China and Italy. China lacks independent labor unions for all industries; the only legal unions are controlled by the Communist Party, and workers complain that they fail to represent their interests.
On Sunday, the Bangladesh government set up a new minimum wage board that will issue recommendations for pay raises within three months, Textiles Minister Abdul Latif Siddiky said. The Cabinet will then decide whether to accept those proposals.
Government officials also have promised improvements in safety. Since 2005, at least 1,800 garment workers have been killed in factory fires and building collapses in Bangladesh, according to research by the advocacy group International Labor Rights Forum.
In November, 112 workers were killed in a garment factory in Dhaka, the Bangladeshi capital. The factory lacked emergency exits, and its owner said only three floors of the eight-story building were legally built.
Hossain reported from Dhaka.