The new deal avoids an ugly showdown between Labor and WA’s biggest union ahead of the March state election.