Unions and Firms' Investments: A Unified View