The deals require management to bargain over the use of AI in the workplace and enshrine layoff protections at the Microsoft-owned company.