Several unions reach major bankruptcy deals with city of Detroit