The Legislature has foisted a $500 million compromise on affordable housing developers and one of the state's largest construction unions.…