This is not the first time that the government has had to legislate the end to a port workers strike.