Bangladesh's government also agreed to allow garment workers to form unions without permission from factory owners. That decision came a day after it announced a plan to raise the minimum wage in the industry.
The collapse of the eight-story Rana Plaza factory building April 24 focused worldwide attention on hazardous conditions in Bangladesh's garment industry, where workers sew low-cost clothing that ends up on store shelves around the globe, including the U.S. and Western Europe.
Swedish retailing giant H&M, the largest purchaser of garments from Bangladesh; Britain's Primark Stores; C&A; and Inditex, owner of the Zara chain, said they would sign a contract that requires them to conduct independent safety inspections, make reports on factory conditions public and cover the costs of repairs. It also requires them to stop doing business with any factory that refuses to make necessary safety improvements.
Two other companies agreed to sign last year: PVH, which makes clothes under the Calvin Klein, Tommy Hilfiger and Izod labels, and German retailer Tchibo. Others have refused to sign, complaining that the plan would be legally binding and costly.
Primark is one of the few retailers that have acknowledged that their clothes were being made in the Rana Plaza building at the time of the collapse. The building housed five clothing factories.
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.
Mohammed Amir Hossain Mazumder, deputy director of fire service and civil defense, said the search for bodies at Rana Plaza was called off Monday evening.
"Now the site will be handed over to police for protection. There will be no more activities from the fire service or army," he said.
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, 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, and she vowed, "I will not work in a garment factory again."
The Rana Plaza owner and eight other people, including garment factory owners, have been detained in the 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.
Bangladesh's Cabinet approved an amendment to the 2006 Labor Act on Monday lifting restrictions on forming trade unions in most industries, government spokesman Mosharraf Hossain Bhuiyan said. 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."
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. The owners did not hesitate to fire such workers."
Bangladesh's government has in recent years cracked down on 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.
On Monday, nearly 100 garment factories shut down in the Ashulia industrial area near Dhaka after protests erupted over the death of a worker, Parul Akter, 22, whose body was found Friday inside a garment factory. A local police official, Badrul Alam, said she committed suicide.
Thousands of workers took to the streets 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.
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.
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.
The wage board will include representatives of factory owners, workers and the government, he said.
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 the advocacy group International Labor Rights Forum.
In November, 112 workers were killed in a blaze at a garment factory in Dhaka. The factory lacked emergency exits, and its owner said only three floors of the eight-story building were legally built.