Fair Pay Agreements become law after heated, marathon debate marking shift in employment relations