Unions secure guarantees over hospital privatisation