TOKYO -- Japan's No. 2 staffing firm, Temp Holdings, agreed to purchase Panasonic's staffing unit for roughly 20 billion yen ($166 million).