After a contentious battle that included allegations of spying , Burger King announced on Friday that it had reached an agreement to improve the wages and working conditions of tomato pickers in Florida .