Labor gets its workplace changes through parliament in the nick of time