The agreement covers 12,500 cleaners working for dozens of janitorial firms in Massachusetts and Rhode Island, including many of the region’s largest,